pub enum CapabilityQuery {
InClass(u64),
HasAllTags(Vec<String>),
HasAnyTag(Vec<String>),
InState(NodeState),
InRegion(String),
Composite(CapabilityFilter),
}Expand description
Query shapes the CapabilityFold answers.
Composite is the kitchen-sink form the scheduler uses;
individual single-axis variants exist so simpler callers
don’t have to construct the full struct.
Variants§
InClass(u64)
Every member of a class regardless of state / tags.
HasAllTags(Vec<String>)
Every entry carrying ALL of these tags. Set semantics — tags-all over an empty list matches everything.
HasAnyTag(Vec<String>)
Every entry carrying AT LEAST ONE of these tags. Empty
list matches nothing (vs HasAllTags empty matching
everything — same asymmetric semantic the substrate
uses for require_any_tag / require_all_tags).
InState(NodeState)
Every entry currently in state.
InRegion(String)
Every entry in region (exact string match).
Composite(CapabilityFilter)
Composite predicate — the scheduler’s typical shape. Conjunctive AND across every populated field.
Trait Implementations§
Source§impl Clone for CapabilityQuery
impl Clone for CapabilityQuery
Source§fn clone(&self) -> CapabilityQuery
fn clone(&self) -> CapabilityQuery
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 CapabilityQuery
impl Debug for CapabilityQuery
Source§impl PartialEq for CapabilityQuery
impl PartialEq for CapabilityQuery
Source§fn eq(&self, other: &CapabilityQuery) -> bool
fn eq(&self, other: &CapabilityQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CapabilityQuery
impl StructuralPartialEq for CapabilityQuery
Auto Trait Implementations§
impl Freeze for CapabilityQuery
impl RefUnwindSafe for CapabilityQuery
impl Send for CapabilityQuery
impl Sync for CapabilityQuery
impl Unpin for CapabilityQuery
impl UnsafeUnpin for CapabilityQuery
impl UnwindSafe for CapabilityQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.