pub enum TargetSelector {
ExactNode(String),
Lifecycle(NodeLifecycleState),
Adapter(String),
WorkRole(String),
Capability(NodeCapability),
Intersection(Vec<TargetSelector>),
Union(Vec<TargetSelector>),
AllActive,
}Expand description
Selector addressing explicit nodes or indexed characteristics.
Variants§
ExactNode(String)
Direct address of a specific node.
Lifecycle(NodeLifecycleState)
Nodes currently in a specific lifecycle state.
Adapter(String)
Nodes powered by a specific adapter.
WorkRole(String)
Nodes declared with a specific work role tag.
Capability(NodeCapability)
Nodes declaring support for a specific semantic capability.
Intersection(Vec<TargetSelector>)
Conjunction of multiple selectors.
Union(Vec<TargetSelector>)
Disjunction of multiple selectors.
AllActive
All active nodes in the graph.
Trait Implementations§
Source§impl Clone for TargetSelector
impl Clone for TargetSelector
Source§fn clone(&self) -> TargetSelector
fn clone(&self) -> TargetSelector
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 TargetSelector
impl Debug for TargetSelector
Source§impl<'de> Deserialize<'de> for TargetSelector
impl<'de> Deserialize<'de> for TargetSelector
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TargetSelector, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TargetSelector, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TargetSelector
Source§impl PartialEq for TargetSelector
impl PartialEq for TargetSelector
Source§impl Serialize for TargetSelector
impl Serialize for TargetSelector
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TargetSelector
Auto Trait Implementations§
impl Forget for TargetSelector
impl Freeze for TargetSelector
impl Move for TargetSelector
impl RefUnwindSafe for TargetSelector
impl Send for TargetSelector
impl Sync for TargetSelector
impl Unpin for TargetSelector
impl UnsafeUnpin for TargetSelector
impl UnwindSafe for TargetSelector
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.