[][src]Enum tox_packet::dht::GetPayloadErrorKind

pub enum GetPayloadErrorKind {
    Decrypt,
    Deserialize {
        error: Err<(Vec<u8>, ErrorKind)>,
        payload: Vec<u8>,
    },
}

The specific kind of error that can occur.

Variants

Decrypt

Error indicates that received payload of encrypted packet can't be decrypted

Deserialize

Error indicates that decrypted payload of packet can't be parsed

Fields of Deserialize

error: Err<(Vec<u8>, ErrorKind)>

Parsing error

payload: Vec<u8>

Received payload of packet

Trait Implementations

impl Clone for GetPayloadErrorKind[src]

impl Debug for GetPayloadErrorKind[src]

impl Display for GetPayloadErrorKind[src]

impl Eq for GetPayloadErrorKind[src]

impl Fail for GetPayloadErrorKind[src]

impl From<GetPayloadErrorKind> for GetPayloadError[src]

impl PartialEq<GetPayloadErrorKind> for GetPayloadErrorKind[src]

impl StructuralEq for GetPayloadErrorKind[src]

impl StructuralPartialEq for GetPayloadErrorKind[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail
[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> ToString for T where
    T: Display + ?Sized
[src]

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.