Enum libp2p_identify::IdentifyEvent
source · pub enum IdentifyEvent {
Identified {
peer_id: PeerId,
info: IdentifyInfo,
observed_addr: Multiaddr,
},
Error {
peer_id: PeerId,
error: ProtocolsHandlerUpgrErr<Error>,
},
}
Expand description
Event generated by the Identify
.
Variants
Identified
Fields
peer_id: PeerId
Peer that has been successfully identified.
info: IdentifyInfo
Information of the remote.
observed_addr: Multiaddr
Address the remote observes us as.
We obtained identification information from the remote
Error
Fields
peer_id: PeerId
Peer that we fail to identify.
error: ProtocolsHandlerUpgrErr<Error>
The error that happened.
Error while attempting to identify the remote.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for IdentifyEvent
impl Send for IdentifyEvent
impl Sync for IdentifyEvent
impl Unpin for IdentifyEvent
impl !UnwindSafe for IdentifyEvent
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