#[non_exhaustive]pub enum EnvelopeCodecError {
PayloadEncode(String),
EnvelopeEncode(String),
EnvelopeDecode(String),
PayloadDecode(String),
Compress(String),
Decompress(String),
WalSegmentTooLarge {
max_bytes: usize,
},
InvalidWalInlineContent {
seq: ChangeSeq,
content_id: ContentId,
reason: &'static str,
},
UnknownKind {
found: String,
},
KindMismatch {
expected: String,
found: String,
},
UnsupportedFormatVersion {
kind: String,
found: u32,
supported: u32,
},
ChecksumMismatch {
expected: 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 (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
WalSegmentTooLarge
Reports a WAL document that exceeds the decompressed format limit.
InvalidWalInlineContent
Reports inline content that violates the WAL format rules.
Fields
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.
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()