Enum libp2p_identify::Event
source · pub enum Event {
Received {
peer_id: PeerId,
info: Info,
},
Sent {
peer_id: PeerId,
},
Pushed {
peer_id: PeerId,
},
Error {
peer_id: PeerId,
error: StreamUpgradeError<UpgradeError>,
},
}
Expand description
Event emitted by the Identify
behaviour.
Variants§
Received
Fields
Identification information has been received from a peer.
Sent
Identification information of the local node has been sent to a peer in response to an identification request.
Pushed
Identification information of the local node has been actively pushed to a peer.
Error
Fields
§
error: StreamUpgradeError<UpgradeError>
The error that occurred.
Error while attempting to identify the remote.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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