pub struct BlockStatus {
pub in_best_chain: bool,
pub height: Option<u32>,
pub next_best: Option<BlockHash>,
}Expand description
The status of a Block.
Fields§
§in_best_chain: boolWhether this Block belongs to the chain with the most Proof-of-Work.
height: Option<u32>The height of this Block.
next_best: Option<BlockHash>Trait Implementations§
Source§impl Clone for BlockStatus
impl Clone for BlockStatus
Source§fn clone(&self) -> BlockStatus
fn clone(&self) -> BlockStatus
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 moreSource§impl Debug for BlockStatus
impl Debug for BlockStatus
Source§impl<'de> Deserialize<'de> for BlockStatus
impl<'de> Deserialize<'de> for BlockStatus
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 BlockStatus
Source§impl PartialEq for BlockStatus
impl PartialEq for BlockStatus
Source§fn eq(&self, other: &BlockStatus) -> bool
fn eq(&self, other: &BlockStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlockStatus
Auto Trait Implementations§
impl Freeze for BlockStatus
impl RefUnwindSafe for BlockStatus
impl Send for BlockStatus
impl Sync for BlockStatus
impl Unpin for BlockStatus
impl UnsafeUnpin for BlockStatus
impl UnwindSafe for BlockStatus
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