pub enum NodeStatus {
Online,
Degraded,
Draining,
Maintenance,
Offline,
Starting,
ShuttingDown,
}Expand description
Node operational status
Variants§
Online
Fully operational
Degraded
Operational but with reduced capacity
Draining
Draining connections, no new work
Maintenance
Under maintenance, may return
Offline
Not responding
Starting
Starting up
ShuttingDown
Gracefully shutting down
Implementations§
Source§impl NodeStatus
impl NodeStatus
Sourcepub fn accepts_work(&self) -> bool
pub fn accepts_work(&self) -> bool
Whether node can accept new work
Sourcepub fn is_reachable(&self) -> bool
pub fn is_reachable(&self) -> bool
Whether node is reachable
Sourcepub fn routing_priority(&self) -> u8
pub fn routing_priority(&self) -> u8
Priority for routing (higher = prefer)
Trait Implementations§
Source§impl Clone for NodeStatus
impl Clone for NodeStatus
Source§fn clone(&self) -> NodeStatus
fn clone(&self) -> NodeStatus
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 moreimpl Copy for NodeStatus
Source§impl Debug for NodeStatus
impl Debug for NodeStatus
Source§impl<'de> Deserialize<'de> for NodeStatus
impl<'de> Deserialize<'de> for NodeStatus
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 Eq for NodeStatus
Source§impl Hash for NodeStatus
impl Hash for NodeStatus
Source§impl PartialEq for NodeStatus
impl PartialEq for NodeStatus
Source§fn eq(&self, other: &NodeStatus) -> bool
fn eq(&self, other: &NodeStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeStatus
impl Serialize for NodeStatus
impl StructuralPartialEq for NodeStatus
Auto Trait Implementations§
impl Freeze for NodeStatus
impl RefUnwindSafe for NodeStatus
impl Send for NodeStatus
impl Sync for NodeStatus
impl Unpin for NodeStatus
impl UnsafeUnpin for NodeStatus
impl UnwindSafe for NodeStatus
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> CallHasher for T
impl<T> CallHasher for T
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.