[][src]Struct tox_packet::relay::DisconnectNotification

pub struct DisconnectNotification {
    pub connection_id: ConnectionId,
}

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:

LengthContent
10x03
1connection_id [ 0x10 .. 0xFF ]

Fields

connection_id: ConnectionId

The id of the disconnected client

Trait Implementations

impl Clone for DisconnectNotification[src]

impl Debug for DisconnectNotification[src]

impl FromBytes for DisconnectNotification[src]

impl PartialEq<DisconnectNotification> for DisconnectNotification[src]

impl StructuralPartialEq for DisconnectNotification[src]

impl ToBytes for DisconnectNotification[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.