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
Show fields
Fields of WrongEncoding
Show fields
Fields of UnknownSpecVersion
source: UnknownSpecVersionShow fields
Fields of UnknownAttribute
name: StringShow fields
Fields of EventBuilderError
source: EventBuilderErrorShow fields
Fields of ParseTimeError
source: ParseErrorShow fields
Fields of ParseUrlError
source: ParseErrorShow fields
Fields of Base64DecodingError
source: DecodeErrorShow fields
Fields of SerdeJsonError
source: ErrorShow fields
Fields of IOError
source: ErrorTrait Implementations
👎 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
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Errorimpl !UnwindSafe for Error