[][src]Struct grin_p2p::PeerData

pub struct PeerData {
    pub addr: PeerAddr,
    pub capabilities: Capabilities,
    pub user_agent: String,
    pub flags: State,
    pub last_banned: i64,
    pub ban_reason: ReasonForBan,
    pub last_connected: i64,
}

Data stored for any given peer we've encountered.

Fields

addr: PeerAddr

Network address of the peer.

capabilities: Capabilities

What capabilities the peer advertises. Unknown until a successful connection.

user_agent: String

The peer user agent.

flags: State

State the peer has been detected with.

last_banned: i64

The time the peer was last banned

ban_reason: ReasonForBan

The reason for the ban

last_connected: i64

Time when we last connected to this peer.

Trait Implementations

impl Clone for PeerData[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for PeerData[src]

impl Serialize for PeerData[src]

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

impl Readable for PeerData[src]

impl Writeable for PeerData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

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

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Send + Sync + Clone

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

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