pub trait NetworkIdentity {
    type PeerId: PeerId;
    type AddressingInformation: AddressingInformation<PeerId = Self::PeerId>;

    // Required method
    fn identity(&self) -> Self::AddressingInformation;
}
Expand description

Abstraction for requesting own network addressing information.

Required Associated Types§

Required Methods§

source

fn identity(&self) -> Self::AddressingInformation

The external identity of this node.

Implementors§