pub struct IdentifyInfo {
pub public_key: PublicKey,
pub protocol_version: String,
pub agent_version: String,
pub listen_addrs: Vec<Multiaddr>,
pub protocols: Vec<String>,
}Expand description
Information of a peer sent in Identify protocol responses.
Fields§
§public_key: PublicKeyThe public key underlying the peer’s PeerId.
protocol_version: StringVersion of the protocol family used by the peer, e.g. ipfs/1.0.0
or polkadot/1.0.0.
agent_version: StringName and version of the peer, similar to the User-Agent header in
the HTTP protocol.
listen_addrs: Vec<Multiaddr>The addresses that the peer is listening on.
protocols: Vec<String>The list of protocols supported by the peer, e.g. /ipfs/ping/1.0.0.
Trait Implementations§
Source§impl Clone for IdentifyInfo
impl Clone for IdentifyInfo
Source§fn clone(&self) -> IdentifyInfo
fn clone(&self) -> IdentifyInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IdentifyInfo
impl RefUnwindSafe for IdentifyInfo
impl Send for IdentifyInfo
impl Sync for IdentifyInfo
impl Unpin for IdentifyInfo
impl UnwindSafe for IdentifyInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more