pub enum IdentifyEvent {
Received {
peer_id: PeerId,
info: IdentifyInfo,
observed_addr: Multiaddr,
},
Sent {
peer_id: PeerId,
},
Error {
peer_id: PeerId,
error: ProtocolsHandlerUpgrErr<ReadOneError>,
},
}Expand description
Event emitted by the Identify behaviour.
Variants§
Received
Identifying information has been received from a peer.
Fields
§
info: IdentifyInfoThe information provided by the peer.
Sent
Identifying information of the local node has been sent to a peer.
Error
Error while attempting to identify the remote.
Fields
§
error: ProtocolsHandlerUpgrErr<ReadOneError>The error that occurred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IdentifyEvent
impl !RefUnwindSafe for IdentifyEvent
impl Send for IdentifyEvent
impl Sync for IdentifyEvent
impl Unpin for IdentifyEvent
impl !UnwindSafe for IdentifyEvent
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> 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