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: ResourceDialect> Decode<ComponentSelector, D> for ComponentSelector
impl<D: ResourceDialect> Decode<ComponentSelector, D> for ComponentSelector
Source§impl Default for ComponentSelector
impl Default for ComponentSelector
Source§fn default() -> ComponentSelector
fn default() -> ComponentSelector
Source§impl<D: ResourceDialect> Encode<ComponentSelector, D> for &ComponentSelector
impl<D: ResourceDialect> Encode<ComponentSelector, D> for &ComponentSelector
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
.§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 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 moreimpl Persistable for ComponentSelector
impl StructuralPartialEq for ComponentSelector
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§
§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
)