pub struct ComponentSelector {
    pub moniker_segments: Option<Vec<StringSelector>>,
    /* private fields */
}Expand description
Specifies a pattern of component monikers which identify components being selected for.
Component selectors support wildcarding, which will glob a single “level” of a component moniker. eg: core/*/echo will match all echo instances running only in realms directly under core, but none nested further.
Component selectors also support a recursive wildcard, which will glob multiple “levels” of a component moniker. eg: core/** will match all component instances running under core/ and all descendants of it. Note that the wildcard does not select core itself. Clients that wish to choose a subtree including the root should pass two selectors, eg: core core/** The recursive wildcard is only allowed as the final segment of the selector.
Fields§
§moniker_segments: Option<Vec<StringSelector>>Vector encoding the a pattern for monikers of components being selected for. These monikers are child-monikers relative to a “root” hierarchy that the archivist is aware of.
There must be at least one StringSelector provided, which specifies the component names that are matched by the current selector.
Trait Implementations§
Source§impl Clone for ComponentSelector
 
impl Clone for ComponentSelector
Source§fn clone(&self) -> ComponentSelector
 
fn clone(&self) -> ComponentSelector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComponentSelector
 
impl Debug for ComponentSelector
Source§impl<D> Decode<ComponentSelector, D> for ComponentSelectorwhere
    D: ResourceDialect,
 
impl<D> Decode<ComponentSelector, D> for ComponentSelectorwhere
    D: ResourceDialect,
Source§fn new_empty() -> ComponentSelector
 
fn new_empty() -> ComponentSelector
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for ComponentSelector
 
impl Default for ComponentSelector
Source§fn default() -> ComponentSelector
 
fn default() -> ComponentSelector
Source§impl<D> Encode<ComponentSelector, D> for &ComponentSelectorwhere
    D: ResourceDialect,
 
impl<D> Encode<ComponentSelector, D> for &ComponentSelectorwhere
    D: ResourceDialect,
Source§impl PartialEq for ComponentSelector
 
impl PartialEq for ComponentSelector
Source§impl TypeMarker for ComponentSelector
 
impl TypeMarker for ComponentSelector
Source§type Owned = ComponentSelector
 
type Owned = ComponentSelector
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.Source§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 moreSource§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 ComponentSelector
 
impl ValueTypeMarker for ComponentSelector
Source§type Borrowed<'a> = &'a ComponentSelector
 
type Borrowed<'a> = &'a ComponentSelector
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
    value: &<ComponentSelector as TypeMarker>::Owned,
) -> <ComponentSelector as ValueTypeMarker>::Borrowed<'_>
 
fn borrow( value: &<ComponentSelector as TypeMarker>::Owned, ) -> <ComponentSelector as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.