pub enum ErStatus {
Active = 0,
Draining = 1,
Offline = 2,
}Expand description
Possible states for ER node to be in
Variants§
Active = 0
node is active and accepting new delegations
Draining = 1
node is active but not accepting new delegations, only serving existing ones
Offline = 2
node has been taken offline, e.g. for maintenance
Trait Implementations§
Source§impl BorshDeserialize for ErStatus
impl BorshDeserialize for ErStatus
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ErStatus
impl BorshSerialize for ErStatus
impl Copy for ErStatus
impl Eq for ErStatus
impl StructuralPartialEq for ErStatus
Auto Trait Implementations§
impl Freeze for ErStatus
impl RefUnwindSafe for ErStatus
impl Send for ErStatus
impl Sync for ErStatus
impl Unpin for ErStatus
impl UnwindSafe for ErStatus
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