pub enum EnvelopeCodecError {
PayloadEncode(String),
EnvelopeEncode(String),
EnvelopeDecode(String),
PayloadDecode(String),
Compress(String),
Decompress(String),
UnknownKind {
found: String,
},
KindMismatch {
expected: String,
found: String,
},
UnsupportedFormatVersion {
kind: String,
found: u32,
supported: u32,
},
ChecksumMismatch {
expected: String,
actual: String,
},
StalePayloadChecksum {
checksum: String,
actual: String,
},
}Expand description
Failure vocabulary shared by every envelope codec. Messages are envelope-generic; the wrapping error names the object (and its key) the bytes came from.
Variants§
PayloadEncode(String)
Reports a payload that cannot be serialized into its family’s durable encoding.
EnvelopeEncode(String)
Reports an envelope document that cannot be serialized around an encoded payload.
EnvelopeDecode(String)
Reports bytes that do not decode as the shared durable envelope layout.
PayloadDecode(String)
Reports a verified envelope whose opaque payload does not decode as its declared family.
Compress(String)
Reports an envelope that the configured transport codec could not compress.
Decompress(String)
Reports stored bytes that the configured transport codec could not decompress.
UnknownKind
Reports an unrecognized durable-family discriminator found during the envelope probe.
KindMismatch
Reports a valid discriminator that does not belong to the decoder the caller selected.
Fields
UnsupportedFormatVersion
Reports a known durable family whose format version this build cannot read.
Fields
ChecksumMismatch
Reports stored payload bytes that do not match the checksum recorded beside them.
Fields
StalePayloadChecksum
Reports an in-memory payload changed without rebuilding its envelope checksum.
Trait Implementations§
Source§impl Debug for EnvelopeCodecError
impl Debug for EnvelopeCodecError
Source§impl Display for EnvelopeCodecError
impl Display for EnvelopeCodecError
Source§impl Error for EnvelopeCodecError
impl Error for EnvelopeCodecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()