Enum vino_codec::error::CodecError[][src]

pub enum CodecError {
    MessagePackSerializationError(Error),
    MessagePackDeserializationError(Error),
    JsonSerializationError(Error),
    JsonDeserializationError(Error),
    SerializationError(SerializerError),
    DeserializationError(DeserializerError),
    MissingInput(String),
    // some variants omitted
}
Expand description

vino-codec’s Error type.

Variants

MessagePackSerializationError

Error to proxy rmp_serde encoding errors.

Tuple Fields of MessagePackSerializationError

0: Error
MessagePackDeserializationError

Error to proxy rmp_serde decoding errors.

Tuple Fields of MessagePackDeserializationError

0: Error
JsonSerializationError

Error to proxy serde_json encoding errors.

Tuple Fields of JsonSerializationError

0: Error
JsonDeserializationError

Error to proxy serde_json decoding errors.

Tuple Fields of JsonDeserializationError

0: Error
SerializationError

Error when serializing to a raw value.

Tuple Fields of SerializationError

0: SerializerError
DeserializationError

Error when deserialization from a raw value.

Tuple Fields of DeserializationError

0: DeserializerError
MissingInput

Error returned when requesting a field of the payload that doesn’t exist.

Tuple Fields of MissingInput

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

Performs the conversion.

Performs the conversion.

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.