Struct Info
pub struct Info {
pub public_key: PublicKey,
pub protocol_version: String,
pub agent_version: String,
pub listen_addrs: Vec<Multiaddr>,
pub protocols: Vec<StreamProtocol>,
pub observed_addr: Multiaddr,
pub signed_peer_record: Option<SignedEnvelope>,
}Available on crate feature
identify only.Expand description
Identify information of a peer sent in protocol messages.
Fields§
§public_key: PublicKeyThe public key of the peer.
protocol_version: StringApplication-specific version 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<StreamProtocol>The list of protocols supported by the peer, e.g. /ipfs/ping/1.0.0.
observed_addr: MultiaddrAddress observed by or for the remote.
signed_peer_record: Option<SignedEnvelope>Verifiable addresses of the peer.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Info
impl Forget for Info
impl Move for Info
impl RefUnwindSafe for Infowhere
AffinePoint: RefUnwindSafe,
AffinePoint<NistP256>: RefUnwindSafe,
Atomic<*mut ()>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnsafeUnpin for Infowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
AffinePoint: UnsafeUnpin,
AffinePoint<NistP256>: UnsafeUnpin,
PhantomData<Multiaddr>: UnsafeUnpin,
PhantomData<StreamProtocol>: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
impl UnwindSafe for Infowhere
RawVecInner: UnwindSafe,
AffinePoint: UnwindSafe,
AffinePoint<NistP256>: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
&'static str: UnwindSafe,
Arc<str>: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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