pub struct LatestStatus {
pub height: Option<u64>,
pub block_hash: Option<Hash>,
pub valset_hash: Option<Hash>,
pub connected_nodes: Vec<PeerId>,
}Expand description
Contains the local status information, like the latest height, latest block and valset hashes, list of of connected full nodes (primary and witnesses).
Fields§
§height: Option<u64>The latest height we are trusting.
block_hash: Option<Hash>The latest block hash we are trusting.
valset_hash: Option<Hash>The latest validator set we are trusting. Note that this potentially did not yet sign a header yet.
connected_nodes: Vec<PeerId>The list of fullnodes we are connected to, primary and witnesses.
Implementations§
Trait Implementations§
Source§impl Clone for LatestStatus
impl Clone for LatestStatus
Source§fn clone(&self) -> LatestStatus
fn clone(&self) -> LatestStatus
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 LatestStatus
impl Debug for LatestStatus
Source§impl<'de> Deserialize<'de> for LatestStatus
impl<'de> Deserialize<'de> for LatestStatus
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 Display for LatestStatus
impl Display for LatestStatus
impl Eq for LatestStatus
Source§impl PartialEq for LatestStatus
impl PartialEq for LatestStatus
Source§fn eq(&self, other: &LatestStatus) -> bool
fn eq(&self, other: &LatestStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LatestStatus
impl Serialize for LatestStatus
impl StructuralPartialEq for LatestStatus
Auto Trait Implementations§
impl Freeze for LatestStatus
impl RefUnwindSafe for LatestStatus
impl Send for LatestStatus
impl Sync for LatestStatus
impl Unpin for LatestStatus
impl UnsafeUnpin for LatestStatus
impl UnwindSafe for LatestStatus
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