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 ToSelectorArguments for ComponentSelector
impl ToSelectorArguments for ComponentSelector
fn to_selector_arguments(self) -> Box<dyn Iterator<Item = SelectorArgument>>
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