pub enum IdentifyEvent {
PeerIdentified {
peer: PeerId,
protocol_version: Option<String>,
user_agent: Option<String>,
supported_protocols: HashSet<ProtocolName>,
observed_address: Multiaddr,
listen_addresses: Vec<Multiaddr>,
},
}
Expand description
Events emitted by Identify protocol.
Variants§
PeerIdentified
Peer identified.
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