pub struct RuntimeNodeSelectors { /* private fields */ }Expand description
Normalized, deterministic runtime-node selection authority.
Obtain this value through Config::runtime_node_selectors after calling
Config::validate. It retains configured selector order while removing
later duplicate spellings.
Implementations§
Source§impl RuntimeNodeSelectors
impl RuntimeNodeSelectors
Sourcepub fn selectors(&self) -> &[String]
pub fn selectors(&self) -> &[String]
Normalized selectors in configured first-occurrence order.
Sourcepub fn resolve<'a, T: Clone>(
&self,
candidates: impl IntoIterator<Item = (&'a str, T)>,
) -> Vec<RuntimeNodeSelectorResolution<T>>
pub fn resolve<'a, T: Clone>( &self, candidates: impl IntoIterator<Item = (&'a str, T)>, ) -> Vec<RuntimeNodeSelectorResolution<T>>
Resolve every selector against named candidates in deterministic input order.
Exact names and * globs follow glob_match. Every configured
selector receives a result so consumers can preserve distinct no-match
and ambiguity handling without duplicating selector semantics. Unnamed
candidates are represented by omitting them from candidates.
Trait Implementations§
Source§impl Clone for RuntimeNodeSelectors
impl Clone for RuntimeNodeSelectors
Source§fn clone(&self) -> RuntimeNodeSelectors
fn clone(&self) -> RuntimeNodeSelectors
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeNodeSelectors
impl Debug for RuntimeNodeSelectors
impl Eq for RuntimeNodeSelectors
Source§impl PartialEq for RuntimeNodeSelectors
impl PartialEq for RuntimeNodeSelectors
impl StructuralPartialEq for RuntimeNodeSelectors
Auto Trait Implementations§
impl Freeze for RuntimeNodeSelectors
impl RefUnwindSafe for RuntimeNodeSelectors
impl Send for RuntimeNodeSelectors
impl Sync for RuntimeNodeSelectors
impl Unpin for RuntimeNodeSelectors
impl UnsafeUnpin for RuntimeNodeSelectors
impl UnwindSafe for RuntimeNodeSelectors
Blanket Implementations§
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
Mutably borrows from an owned value. Read more