pub struct NodeFlags {
pub myself: bool,
pub pfail: bool,
pub fail: bool,
pub handshake: bool,
pub noaddr: bool,
}Expand description
Status flags for a node.
Fields§
§myself: boolNode is the local node (myself).
pfail: boolNode is suspected to be failing.
fail: boolNode has been confirmed as failed by the cluster.
handshake: boolNode is performing a handshake (not yet part of cluster).
noaddr: boolNode has no address yet.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeFlags
impl<'de> Deserialize<'de> for NodeFlags
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
impl Copy for NodeFlags
impl Eq for NodeFlags
impl StructuralPartialEq for NodeFlags
Auto Trait Implementations§
impl Freeze for NodeFlags
impl RefUnwindSafe for NodeFlags
impl Send for NodeFlags
impl Sync for NodeFlags
impl Unpin for NodeFlags
impl UnsafeUnpin for NodeFlags
impl UnwindSafe for NodeFlags
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