pub struct Struct {
AppicationHandle: AppHandle,
}Fields§
§AppicationHandle: AppHandleImplementations§
Trait Implementations§
Source§impl TreeViewProvider for Struct
impl TreeViewProvider for Struct
Source§fn RegisterTreeDataProvider<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_Options: Value,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn RegisterTreeDataProvider<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_Options: Value,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Informs the host that a new tree data provider has been registered by
an extension. The host should prepare to display a tree view with the
given ID and options. Read more
Source§fn UnregisterTreeDataProvider<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn UnregisterTreeDataProvider<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Informs the host that a tree data provider has been disposed of. Read more
Source§fn RevealTreeItem<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_ItemHandle: String,
_Options: Value,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn RevealTreeItem<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_ItemHandle: String,
_Options: Value,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Asks the host UI to reveal and/or expand a specific item in a tree view. Read more
Source§fn RefreshTreeView<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_ItemsToRefresh: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn RefreshTreeView<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_ItemsToRefresh: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Notifies the host that some or all of the data in a tree view has
changed and needs to be re-fetched and re-rendered. Read more
Source§fn SetTreeViewMessage<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_Message: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn SetTreeViewMessage<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_Message: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sets a message to be displayed in the tree view’s empty state. Read more
Source§fn SetTreeViewTitle<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_Title: Option<String>,
_Description: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn SetTreeViewTitle<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_Title: Option<String>,
_Description: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sets the title and description of the tree view container. Read more
Source§fn SetTreeViewBadge<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_BadgeValue: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn SetTreeViewBadge<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_BadgeValue: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sets a badge (e.g., a number) on the tree view’s container icon. Read more
Source§fn OnTreeNodeExpanded<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_ElementHandle: String,
_IsExpanded: bool,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn OnTreeNodeExpanded<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_ElementHandle: String,
_IsExpanded: bool,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handles tree node expansion/collapse events.
Called when a user expands or collapses a node in the tree view. Read more
Source§fn OnTreeSelectionChanged<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_SelectedHandles: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn OnTreeSelectionChanged<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_SelectedHandles: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handles tree selection changes.
Called when the user selects or deselects items in the tree view. Read more
Source§fn PersistTreeViewState<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn PersistTreeViewState<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Persists the current state of a tree view.
Saves the expansion and selection state for later restoration. Read more
Source§fn RestoreTreeViewState<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_StateValue: Value,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn RestoreTreeViewState<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
_StateValue: Value,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Restores a previously persisted tree view state. Read more
Source§fn GetChildren<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
ElementHandle: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn GetChildren<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
ElementHandle: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves the children for a given tree element. Read more
Source§fn GetTreeItem<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
ElementHandle: String,
) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn GetTreeItem<'life0, 'async_trait>(
&'life0 self,
_ViewIdentifier: String,
ElementHandle: String,
) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves the full
TreeItem DTO for a given element handle.
This is used by the host to get the display properties of an item. Read moreimpl Environment for Struct
Auto Trait Implementations§
impl Freeze for Struct
impl !RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnsafeUnpin for Struct
impl !UnwindSafe for Struct
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].