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.
Omitting a name-filter is equivalent to TreeNames::some([“root”]). Note that “root” is the default tree name.
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.