pub enum PeerDisconnectReason {
Requested,
RemoteDisconnectionNotification {
reason_code: Option<u8>,
},
RemoteDetectLostConnection,
WorkerStopped {
shard_id: usize,
},
}Expand description
Reason reported when a peer session is closed.
Variants§
Trait Implementations§
Source§impl Clone for PeerDisconnectReason
impl Clone for PeerDisconnectReason
Source§fn clone(&self) -> PeerDisconnectReason
fn clone(&self) -> PeerDisconnectReason
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 PeerDisconnectReason
impl Debug for PeerDisconnectReason
Source§impl From<PeerDisconnectReason> for RemoteDisconnectReason
impl From<PeerDisconnectReason> for RemoteDisconnectReason
Source§fn from(value: PeerDisconnectReason) -> Self
fn from(value: PeerDisconnectReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PeerDisconnectReason
impl PartialEq for PeerDisconnectReason
impl Copy for PeerDisconnectReason
impl Eq for PeerDisconnectReason
impl StructuralPartialEq for PeerDisconnectReason
Auto Trait Implementations§
impl Freeze for PeerDisconnectReason
impl RefUnwindSafe for PeerDisconnectReason
impl Send for PeerDisconnectReason
impl Sync for PeerDisconnectReason
impl Unpin for PeerDisconnectReason
impl UnsafeUnpin for PeerDisconnectReason
impl UnwindSafe for PeerDisconnectReason
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