[][src]Struct ckb_jsonrpc_types::PeerState

pub struct PeerState {
    pub peer: Uint32,
    pub last_updated: Timestamp,
    pub blocks_in_flight: Uint32,
}

Peer (remote node) state.

Fields

peer: Uint32

Peer session id.

last_updated: Timestamp

last updated timestamp.

blocks_in_flight: Uint32

blocks count has request but not receive response yet.

Implementations

impl PeerState[src]

pub fn new(peer: usize, last_updated: u64, blocks_in_flight: usize) -> Self[src]

Creates a new peer state.

Trait Implementations

impl Debug for PeerState[src]

impl<'de> Deserialize<'de> for PeerState[src]

impl Serialize for PeerState[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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>,