Struct libp2p_identify::protocol::IdentifyInfo
source · 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 sent from the listener to the dialer.
Fields
public_key: PublicKeyPublic key of the node.
protocol_version: StringVersion of the “global” protocol, e.g. ipfs/1.0.0 or polkadot/1.0.0.
agent_version: StringName and version of the client. Can be thought as similar to the User-Agent header
of HTTP.
listen_addrs: Vec<Multiaddr>Addresses that the node is listening on.
protocols: Vec<String>Protocols supported by the node, e.g. /ipfs/ping/1.0.0.
Trait Implementations
sourceimpl Clone for IdentifyInfo
impl Clone for IdentifyInfo
sourcefn clone(&self) -> IdentifyInfo
fn clone(&self) -> IdentifyInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for IdentifyInfo
impl Send for IdentifyInfo
impl Sync for IdentifyInfo
impl Unpin for IdentifyInfo
impl UnwindSafe for IdentifyInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more