[−][src]Struct tox_packet::relay::DisconnectNotification
Sent by client to server.
Sent when client wants the server to forget about the connection related
to the connection_id in the notification. Server must remove this connection
and must be able to reuse the connection_id
for another connection. If the
connection was connected the server must send a disconnect notification to the
other client. The other client must think that this client has simply
disconnected from the TCP server.
Sent by server to client.
Sent by the server to the client to tell them that the connection with
connection_id
that was connected is now disconnected. It is sent either
when the other client of the connection disconnect or when they tell the
server to kill the connection (see above).
Serialized form:
Length | Content |
---|---|
1 | 0x03 |
1 | connection_id [ 0x10 .. 0xFF ] |
Fields
connection_id: ConnectionId
The id of the disconnected client
Trait Implementations
impl Clone for DisconnectNotification
[src]
pub fn clone(&self) -> DisconnectNotification
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DisconnectNotification
[src]
impl FromBytes for DisconnectNotification
[src]
impl PartialEq<DisconnectNotification> for DisconnectNotification
[src]
pub fn eq(&self, other: &DisconnectNotification) -> bool
[src]
pub fn ne(&self, other: &DisconnectNotification) -> bool
[src]
impl StructuralPartialEq for DisconnectNotification
[src]
impl ToBytes for DisconnectNotification
[src]
Auto Trait Implementations
impl RefUnwindSafe for DisconnectNotification
[src]
impl Send for DisconnectNotification
[src]
impl Sync for DisconnectNotification
[src]
impl Unpin for DisconnectNotification
[src]
impl UnwindSafe for DisconnectNotification
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,