pub enum UnpackError<T, U> {
    Packable(T),
    Unpacker(U),
}
Expand description

Error type raised when Packable::unpack fails.

If you need to do error coercion use UnpackErrorExt.

Variants

Packable(T)

Semantic error. Typically this is Packable::UnpackError.

Unpacker(U)

Error produced by the unpacker. Typically this is Unpacker::Error.

Implementations

Wraps an error in the Packable variant.

Get the Packer variant if the Packable variant is Infallible.

Get the Packable variant if the Unpacker variant is Infallible.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts to this type from the input type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.