[][src]Enum koibumi_core::object::TryIntoMsgError

pub enum TryIntoMsgError {
    InvalidType(ObjectType),
    IoError(Error),
    UnsupportedVersion(ObjectVersion),
}

This error indicates that the conversion from object to msg failed.

Variants

InvalidType(ObjectType)

Indicates that the type of the supplied object was not msg. The actual type of the object is returned as a payload of this variant.

IoError(Error)

A standard I/O error was caught during decrypting a message. The actual error caught is returned as a payload of this variant.

UnsupportedVersion(ObjectVersion)

Indicates that the version of the supplied object was not supported. The actual version of the object is returned as a payload of this variant.

Trait Implementations

impl Debug for TryIntoMsgError[src]

impl Display for TryIntoMsgError[src]

impl Error for TryIntoMsgError[src]

impl From<Error> for TryIntoMsgError[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> Same<T> for T

type Output = T

Should always be Self

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.