pub struct Selector {
pub component_selector: Option<ComponentSelector>,
pub tree_selector: Option<TreeSelector>,
pub tree_names: Option<TreeNames>,
/* private fields */
}
Expand description
Structured selector containing all required information for pattern-matching onto string-named properties owned by nodes in a data hierarchy, where data hierarchies belong to specific components.
These selectors are represented in text form as three segments, colon delimited, specifying: <component_moniker>:<node_selector>:<property_selector> Examples: Property selection: realm1/realm2/echo:root/active_users:user_count
Subtree selection: realm1/realm2/echo:root/active_users
Fields§
§component_selector: Option<ComponentSelector>
The selector defining a pattern of component monikers to match against.
tree_selector: Option<TreeSelector>
The selector defining data hierarchy properties to match against
within the data hierarchies owned by components matched by
component_selector
.
tree_names: Option<TreeNames>
A set of fuchsia.inspect.Tree names to filter with before applying hierarchy/property selectors.
Currently, leaving this field out is equivalent to TreeNames::all. This is a soft transition; eventually it will be equivalent to TreeNames::some([“root”]), where “root” is the default tree name. https://fxbug.dev/355732696 tracks this transition.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Selector, D> for Selector
impl<D: ResourceDialect> Decode<Selector, D> for Selector
Source§impl TypeMarker for Selector
impl TypeMarker for Selector
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Selector
impl ValueTypeMarker for Selector
impl Persistable for Selector
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)