[][src]Enum cjdns_hdr::SerializeError

pub enum SerializeError {
    UnrecognizedData,
    InvalidInvariant(&'static str),
    InvalidData(&'static str),
}

Errors returned when serializing message or its parts (for example, message header) failed

Variants

UnrecognizedData

Trying to serialize data with values unintended to be present in the wild.

InvalidInvariant(&'static str)

Message (or its parts) invariants are not met. Description message can be provided.

InvalidData(&'static str)

Trying to serialize unusable data. Description message can be provided.

Trait Implementations

impl Clone for SerializeError[src]

impl Copy for SerializeError[src]

impl Debug for SerializeError[src]

impl Display for SerializeError[src]

impl Eq for SerializeError[src]

impl Error for SerializeError[src]

impl PartialEq<SerializeError> for SerializeError[src]

impl StructuralEq for SerializeError[src]

impl StructuralPartialEq for SerializeError[src]

Auto Trait Implementations

impl RefUnwindSafe for SerializeError

impl Send for SerializeError

impl Sync for SerializeError

impl Unpin for SerializeError

impl UnwindSafe for SerializeError

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> 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.