[][src]Enum tox_packet::dht::Packet

pub enum Packet {
    PingRequest(PingRequest),
    PingResponse(PingResponse),
    NodesRequest(NodesRequest),
    NodesResponse(NodesResponse),
    CookieRequest(CookieRequest),
    CookieResponse(CookieResponse),
    CryptoHandshake(CryptoHandshake),
    CryptoData(CryptoData),
    DhtRequest(DhtRequest),
    LanDiscovery(LanDiscovery),
    OnionRequest0(OnionRequest0),
    OnionRequest1(OnionRequest1),
    OnionRequest2(OnionRequest2),
    OnionAnnounceRequest(OnionAnnounceRequest),
    OnionAnnounceResponse(OnionAnnounceResponse),
    OnionDataRequest(OnionDataRequest),
    OnionDataResponse(OnionDataResponse),
    OnionResponse3(OnionResponse3),
    OnionResponse2(OnionResponse2),
    OnionResponse1(OnionResponse1),
    BootstrapInfo(BootstrapInfo),
}

DHT packet enum that encapsulates all types of DHT packets.

Variants

PingRequest(PingRequest)

PingRequest structure.

PingResponse(PingResponse)

PingResponse structure.

NodesRequest(NodesRequest)

NodesRequest structure.

NodesResponse(NodesResponse)

NodesResponse structure.

CookieRequest(CookieRequest)

CookieRequest structure.

CookieResponse(CookieResponse)

CookieRequest structure.

CryptoHandshake(CryptoHandshake)

CryptoHandshake structure.

CryptoData(CryptoData)

CryptoData structure.

DhtRequest(DhtRequest)

DhtRequest structure.

LanDiscovery(LanDiscovery)

LanDiscovery structure.

OnionRequest0(OnionRequest0)

OnionRequest0 structure.

OnionRequest1(OnionRequest1)

OnionRequest1 structure.

OnionRequest2(OnionRequest2)

OnionRequest2 structure.

OnionAnnounceRequest(OnionAnnounceRequest)
OnionAnnounceResponse(OnionAnnounceResponse)
OnionDataRequest(OnionDataRequest)

OnionDataRequest structure.

OnionDataResponse(OnionDataResponse)

OnionDataResponse structure.

OnionResponse3(OnionResponse3)

OnionResponse3 structure.

OnionResponse2(OnionResponse2)

OnionResponse2 structure.

OnionResponse1(OnionResponse1)

OnionResponse1 structure.

BootstrapInfo(BootstrapInfo)

BootstrapInfo structure.

Trait Implementations

impl Clone for Packet[src]

impl Debug for Packet[src]

impl Eq for Packet[src]

impl FromBytes for Packet[src]

impl PartialEq<Packet> for Packet[src]

impl StructuralEq for Packet[src]

impl StructuralPartialEq for Packet[src]

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