pub enum LeadershipLogStatus {
Pending,
Rejected {
reason: String,
},
Block {
block: Hash,
parent: Hash,
chain_length: u32,
},
}
Expand description
the status of a leadership log
Variants§
Trait Implementations§
source§impl Clone for LeadershipLogStatus
impl Clone for LeadershipLogStatus
source§fn clone(&self) -> LeadershipLogStatus
fn clone(&self) -> LeadershipLogStatus
Returns a copy of the value. Read more
1.0.0 · 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 LeadershipLogStatus
impl Debug for LeadershipLogStatus
source§impl<'de> Deserialize<'de> for LeadershipLogStatus
impl<'de> Deserialize<'de> for LeadershipLogStatus
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 Hash for LeadershipLogStatus
impl Hash for LeadershipLogStatus
source§impl Ord for LeadershipLogStatus
impl Ord for LeadershipLogStatus
source§fn cmp(&self, other: &LeadershipLogStatus) -> Ordering
fn cmp(&self, other: &LeadershipLogStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<LeadershipLogStatus> for LeadershipLogStatus
impl PartialEq<LeadershipLogStatus> for LeadershipLogStatus
source§fn eq(&self, other: &LeadershipLogStatus) -> bool
fn eq(&self, other: &LeadershipLogStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LeadershipLogStatus> for LeadershipLogStatus
impl PartialOrd<LeadershipLogStatus> for LeadershipLogStatus
source§fn partial_cmp(&self, other: &LeadershipLogStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &LeadershipLogStatus) -> Option<Ordering>
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 moresource§impl Serialize for LeadershipLogStatus
impl Serialize for LeadershipLogStatus
impl Eq for LeadershipLogStatus
impl StructuralEq for LeadershipLogStatus
impl StructuralPartialEq for LeadershipLogStatus
Auto Trait Implementations§
impl RefUnwindSafe for LeadershipLogStatus
impl Send for LeadershipLogStatus
impl Sync for LeadershipLogStatus
impl Unpin for LeadershipLogStatus
impl UnwindSafe for LeadershipLogStatus
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