pub struct PeerDisconnect {
pub peer_uid: PeerUid,
pub disconnect_reason: DisconnectReason,
}
Expand description
Peer disconnect.
Fields§
§peer_uid: PeerUid
Peer unique ID.
disconnect_reason: DisconnectReason
Reason for disconnect.
Trait Implementations§
Source§impl Clone for PeerDisconnect
impl Clone for PeerDisconnect
Source§fn clone(&self) -> PeerDisconnect
fn clone(&self) -> PeerDisconnect
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 PeerDisconnect
impl Debug for PeerDisconnect
Source§impl<'de> Deserialize<'de> for PeerDisconnect
impl<'de> Deserialize<'de> for PeerDisconnect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for PeerDisconnect
impl Hash for PeerDisconnect
Source§impl PartialEq for PeerDisconnect
impl PartialEq for PeerDisconnect
Source§impl Serialize for PeerDisconnect
impl Serialize for PeerDisconnect
impl Copy for PeerDisconnect
impl Eq for PeerDisconnect
impl StructuralPartialEq for PeerDisconnect
Auto Trait Implementations§
impl Freeze for PeerDisconnect
impl RefUnwindSafe for PeerDisconnect
impl Send for PeerDisconnect
impl Sync for PeerDisconnect
impl Unpin for PeerDisconnect
impl UnwindSafe for PeerDisconnect
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