Enum cloudevents::message::Error[][src]

pub enum Error {
    WrongEncoding {},
    UnknownSpecVersion {
        source: UnknownSpecVersion,
    },
    UnknownAttribute {
        name: String,
    },
    EventBuilderError {
        source: EventBuilderError,
    },
    ParseTimeError {
        source: ParseError,
    },
    ParseUrlError {
        source: ParseError,
    },
    Base64DecodingError {
        source: DecodeError,
    },
    SerdeJsonError {
        source: Error,
    },
    IOError {
        source: Error,
    },
    Other {
        source: Box<dyn Error + Send + Sync>,
    },
}
Expand description

Represents an error during serialization/deserialization process

Variants

WrongEncoding
Show fields

Fields of WrongEncoding

UnknownSpecVersion
Show fields

Fields of UnknownSpecVersion

source: UnknownSpecVersion
UnknownAttribute
Show fields

Fields of UnknownAttribute

name: String
EventBuilderError
Show fields

Fields of EventBuilderError

source: EventBuilderError
ParseTimeError
Show fields

Fields of ParseTimeError

source: ParseError
ParseUrlError
Show fields

Fields of ParseUrlError

source: ParseError
Base64DecodingError
Show fields

Fields of Base64DecodingError

source: DecodeError
SerdeJsonError
Show fields

Fields of SerdeJsonError

source: Error
IOError
Show fields

Fields of IOError

source: Error
Other
Show fields

Fields of Other

source: Box<dyn Error + Send + Sync>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. 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

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

Returns a Backtrace that may be printed.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. 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.