pub struct ComponentSelector { /* private fields */ }
Expand description
An inspect tree selector for a component.
Implementations§
Source§impl ComponentSelector
impl ComponentSelector
Sourcepub fn new(moniker: Vec<String>) -> Self
pub fn new(moniker: Vec<String>) -> Self
Create a new component event selector.
By default it will select the whole tree unless tree selectors are provided.
moniker
is the realm path relative to the realm of the running component plus the
component name. For example: [a, b, component].
Sourcepub fn with_tree_selector(self, tree_selector: impl Into<String>) -> Self
pub fn with_tree_selector(self, tree_selector: impl Into<String>) -> Self
Select a section of the inspect tree.
Trait Implementations§
Source§impl ToComponentSelectorArguments for ComponentSelector
impl ToComponentSelectorArguments for ComponentSelector
Source§fn to_component_selector_arguments(self) -> ComponentSelector
fn to_component_selector_arguments(self) -> ComponentSelector
Converts this to selector arguments.
Source§impl ToSelectorArguments for ComponentSelector
impl ToSelectorArguments for ComponentSelector
Source§fn to_selector_arguments(self) -> Box<dyn Iterator<Item = SelectorArgument>>
fn to_selector_arguments(self) -> Box<dyn Iterator<Item = SelectorArgument>>
Converts this to selector arguments.
Auto Trait Implementations§
impl Freeze for ComponentSelector
impl RefUnwindSafe for ComponentSelector
impl Send for ComponentSelector
impl Sync for ComponentSelector
impl Unpin for ComponentSelector
impl UnwindSafe for ComponentSelector
Blanket Implementations§
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
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