pub trait AddressingInformation: Debug + Hash + Codec + Clone + Eq + Send + Sync + 'static {
    type PeerId: PeerId;

    // Required methods
    fn peer_id(&self) -> Self::PeerId;
    fn verify(&self) -> bool;
    fn address(&self) -> String;
}
Expand description

Represents the address of an arbitrary node.

Required Associated Types§

Required Methods§

source

fn peer_id(&self) -> Self::PeerId

Returns the peer id associated with this address.

source

fn verify(&self) -> bool

Verify the information.

source

fn address(&self) -> String

Object Safety§

This trait is not object safe.

Implementors§