Enum bollard_stubs::models::NodeState
source · #[repr(C)]
pub enum NodeState {
UNKNOWN,
DOWN,
READY,
DISCONNECTED,
}
Expand description
NodeState represents the state of a node.
Enumeration of values.
Since this enum’s variants do not hold data, we can easily define them them as #[repr(C)]
which helps with FFI.
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeState
impl<'de> Deserialize<'de> for NodeState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for NodeState
impl Ord for NodeState
source§impl PartialEq<NodeState> for NodeState
impl PartialEq<NodeState> for NodeState
source§impl PartialOrd<NodeState> for NodeState
impl PartialOrd<NodeState> for NodeState
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more