pub struct DisconnectEvent {
pub peer_id: PeerId,
pub addr: SocketAddr,
pub reason: PeerDisconnectReason,
}Expand description
Hook payload for a disconnected peer.
Fields§
§peer_id: PeerId§addr: SocketAddr§reason: PeerDisconnectReasonTrait Implementations§
Source§impl Clone for DisconnectEvent
impl Clone for DisconnectEvent
Source§fn clone(&self) -> DisconnectEvent
fn clone(&self) -> DisconnectEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisconnectEvent
impl Debug for DisconnectEvent
Source§impl PartialEq for DisconnectEvent
impl PartialEq for DisconnectEvent
impl Copy for DisconnectEvent
impl Eq for DisconnectEvent
impl StructuralPartialEq for DisconnectEvent
Auto Trait Implementations§
impl Freeze for DisconnectEvent
impl RefUnwindSafe for DisconnectEvent
impl Send for DisconnectEvent
impl Sync for DisconnectEvent
impl Unpin for DisconnectEvent
impl UnsafeUnpin for DisconnectEvent
impl UnwindSafe for DisconnectEvent
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