[][src]Struct casper_node::types::StatusFeed

pub struct StatusFeed<I> {
    pub last_added_block: Option<Block>,
    pub peers: HashMap<I, SocketAddr>,
    pub chainspec_info: ChainspecInfo,
    pub version: &'static str,
}

Data feed for client "info_get_status" endpoint.

Fields

last_added_block: Option<Block>

The last block added to the chain.

peers: HashMap<I, SocketAddr>

The peer nodes which are connected to this node.

chainspec_info: ChainspecInfo

The chainspec info for this node.

version: &'static str

The compiled node version.

Trait Implementations

impl<I: Debug> Debug for StatusFeed<I>[src]

impl From<StatusFeed<KeyFingerprint>> for GetStatusResult[src]

impl<I> Serialize for StatusFeed<I> where
    I: Eq + Hash + Serialize
[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for StatusFeed<I> where
    I: RefUnwindSafe

impl<I> Send for StatusFeed<I> where
    I: Send

impl<I> Sync for StatusFeed<I> where
    I: Sync

impl<I> Unpin for StatusFeed<I> where
    I: Unpin

impl<I> UnwindSafe for StatusFeed<I> where
    I: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromBits<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]