pub struct ComponentSelector {
pub moniker_segments: Option<Vec<StringSelector>>,
/* private fields */
}
Expand description
Specifies a pattern of component relative 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.
Implementations§
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 Decodable for ComponentSelector
impl Decodable for ComponentSelector
source§fn decode(&mut self, decoder: &mut Decoder<'_>, offset: usize) -> Result<()>
fn decode(&mut self, decoder: &mut Decoder<'_>, offset: usize) -> Result<()>
self
.
Callers must ensure that offset
is a multiple of
Layout::inline_align
, and that decoder.buf
has room for reading
Layout::inline_size
bytes at offset
. Read moresource§impl Encodable for ComponentSelector
impl Encodable for ComponentSelector
source§fn encode(
&mut self,
encoder: &mut Encoder<'_, '_>,
offset: usize,
recursion_depth: usize
) -> Result<()>
fn encode( &mut self, encoder: &mut Encoder<'_, '_>, offset: usize, recursion_depth: usize ) -> Result<()>
Handle::INVALID
. Callers must ensure that offset
is a
multiple of Layout::inline_align
, and that encoder.buf
has room for
writing Layout::inline_size
bytes at offset
. Read moresource§impl Layout for ComponentSelector
impl Layout for 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 supports_simple_copy() -> boolwhere
Self: Sized,
fn supports_simple_copy() -> boolwhere Self: Sized,
source§impl PartialEq<ComponentSelector> for ComponentSelector
impl PartialEq<ComponentSelector> for ComponentSelector
source§fn eq(&self, other: &ComponentSelector) -> bool
fn eq(&self, other: &ComponentSelector) -> bool
self
and other
values to be equal, and is used
by ==
.impl Persistable for ComponentSelector
impl StructuralPartialEq for ComponentSelector
impl TopLevel for ComponentSelector
Auto Trait Implementations§
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutObject for Twhere
T: Layout,
impl<T> LayoutObject for Twhere T: Layout,
§fn inline_align(&self, context: &Context) -> usize
fn inline_align(&self, context: &Context) -> usize
Layout::inline_align
.§fn inline_size(&self, context: &Context) -> usize
fn inline_size(&self, context: &Context) -> usize
Layout::inline_size
.