pub enum ChainTipsStatus {
Invalid,
HeadersOnly,
ValidHeaders,
ValidFork,
Active,
}Expand description
The status field from an individual list item from the result of JSON-RPC method getchaintips.
Variants§
Invalid
This branch contains at least one invalid block.
HeadersOnly
Not all blocks for this branch are available, but the headers are valid.
ValidHeaders
All blocks are available for this branch, but they were never fully validated.
ValidFork
This branch is not part of the active chain, but is fully validated.
Active
This is the tip of the active main chain, which is certainly valid.
Implementations§
Source§impl ChainTipsStatus
impl ChainTipsStatus
Sourcepub fn into_model(self) -> ChainTipsStatus
pub fn into_model(self) -> ChainTipsStatus
Converts version specific type to a version in-specific, more strongly typed type.
Trait Implementations§
Source§impl Clone for ChainTipsStatus
impl Clone for ChainTipsStatus
Source§fn clone(&self) -> ChainTipsStatus
fn clone(&self) -> ChainTipsStatus
Returns a duplicate 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 ChainTipsStatus
impl Debug for ChainTipsStatus
Source§impl<'de> Deserialize<'de> for ChainTipsStatus
impl<'de> Deserialize<'de> for ChainTipsStatus
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 PartialEq for ChainTipsStatus
impl PartialEq for ChainTipsStatus
Source§impl Serialize for ChainTipsStatus
impl Serialize for ChainTipsStatus
impl Copy for ChainTipsStatus
impl Eq for ChainTipsStatus
impl StructuralPartialEq for ChainTipsStatus
Auto Trait Implementations§
impl Freeze for ChainTipsStatus
impl RefUnwindSafe for ChainTipsStatus
impl Send for ChainTipsStatus
impl Sync for ChainTipsStatus
impl Unpin for ChainTipsStatus
impl UnwindSafe for ChainTipsStatus
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