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: UnknownSpecVersion
Show fields
Fields of UnknownAttribute
name: String
Show fields
Fields of EventBuilderError
source: EventBuilderError
Show fields
Fields of ParseTimeError
source: ParseError
Show fields
Fields of ParseUrlError
source: ParseError
Show fields
Fields of Base64DecodingError
source: DecodeError
Show fields
Fields of SerdeJsonError
source: Error
Show fields
Fields of IOError
source: Error
Trait 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 Error
impl !UnwindSafe for Error