[][src]Struct sc_rpc::system::PeerInfo

pub struct PeerInfo<Hash, Number> {
    pub peer_id: String,
    pub roles: String,
    pub best_hash: Hash,
    pub best_number: Number,

Network Peer information


peer_id: String

Peer ID

roles: String


best_hash: Hash

Peer best block hash

best_number: Number

Peer best block number

Trait Implementations

impl<Hash, Number> Debug for PeerInfo<Hash, Number> where
    Hash: Debug,
    Number: Debug

impl<'de, Hash, Number> Deserialize<'de> for PeerInfo<Hash, Number> where
    Hash: Deserialize<'de>,
    Number: Deserialize<'de>, 

impl<Hash, Number> PartialEq<PeerInfo<Hash, Number>> for PeerInfo<Hash, Number> where
    Hash: PartialEq<Hash>,
    Number: PartialEq<Number>, 

impl<Hash, Number> Serialize for PeerInfo<Hash, Number> where
    Hash: Serialize,
    Number: Serialize

impl<Hash, Number> StructuralPartialEq for PeerInfo<Hash, Number>[src]

Auto Trait Implementations

impl<Hash, Number> RefUnwindSafe for PeerInfo<Hash, Number> where
    Hash: RefUnwindSafe,
    Number: RefUnwindSafe

impl<Hash, Number> Send for PeerInfo<Hash, Number> where
    Hash: Send,
    Number: Send

impl<Hash, Number> Sync for PeerInfo<Hash, Number> where
    Hash: Sync,
    Number: Sync

impl<Hash, Number> Unpin for PeerInfo<Hash, Number> where
    Hash: Unpin,
    Number: Unpin

impl<Hash, Number> UnwindSafe for PeerInfo<Hash, Number> where
    Hash: UnwindSafe,
    Number: UnwindSafe

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> CheckedConversion for T[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<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>, 

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> MaybeSerialize for T where
    T: Serialize

impl<T> MaybeSerializeDeserialize for T where
    T: DeserializeOwned + Serialize

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> Serialize for T where
    T: Serialize + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded

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

impl<T> WithSubscriber for T[src]