[][src]Struct tox_packet::relay::RouteResponse

pub struct RouteResponse {
    pub connection_id: ConnectionId,
    pub pk: PublicKey,
}

Sent by server to client. The response to the routing request, tell the client if the routing request succeeded (valid connection_id) and if it did, tell them the id of the connection (connection_id). The public key sent in the routing request is also sent in the response so that the client can send many requests at the same time to the server without having code to track which response belongs to which public key.

Serialized form:

LengthContent
10x01
1connection_id [ 0x10 .. 0xFF ]
32Public Key

Fields

connection_id: ConnectionId

The id of the requested PK

pk: PublicKey

The requested PK

Trait Implementations

impl Clone for RouteResponse[src]

impl Debug for RouteResponse[src]

impl FromBytes for RouteResponse[src]

impl PartialEq<RouteResponse> for RouteResponse[src]

impl StructuralPartialEq for RouteResponse[src]

impl ToBytes for RouteResponse[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.