[][src]Struct quic_p2p::NodeInfo

pub struct NodeInfo {
    pub peer_addr: SocketAddr,
    pub peer_cert_der: Vec<u8>,

Information for a peer of type Peer::Node.

This is a necessary information needed to connect to someone.


peer_addr: SocketAddr

Endpoint of the node

peer_cert_der: Vec<u8>

Certificate of the node

Trait Implementations

impl PartialEq<NodeInfo> for NodeInfo[src]

impl Clone for NodeInfo[src]

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

Performs copy-assignment from source. Read more

impl Eq for NodeInfo[src]

impl Into<Peer> for NodeInfo[src]

impl Display for NodeInfo[src]

impl Debug for NodeInfo[src]

impl Hash for NodeInfo[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher

Feeds a slice of this type into the given [Hasher]. Read more

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

impl Serialize for NodeInfo[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> ToString for T where
    T: Display + ?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<T> Borrow<T> for T where
    T: ?Sized

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

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

impl<T> Erased for T

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

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