pub enum PayloadError {
Show 20 variants
UnknownOperation(u16),
TransactionBinding,
LengthOverflow,
Truncated,
Version(u16),
Flags(u16),
Reserved(u32),
EmptyVector,
EmptyDelete,
NonFiniteVector {
index: usize,
},
ValueKind(u8),
ValueLength {
kind: u8,
expected: usize,
actual: usize,
},
Boolean(u8),
Utf8,
TrailingBytes(usize),
FieldBitmap(u32),
Lexical(String),
Columns(String),
BatchPosition {
index: u32,
count: u32,
},
OrphanBatchMember {
index: u32,
count: u32,
},
}Expand description
Typed operation-payload encoding or decoding failure.
Variants§
UnknownOperation(u16)
A WAL operation id has no assigned payload contract.
TransactionBinding
Invalid transaction identity, generation or sequence range.
LengthOverflow
A count or byte length does not fit its frozen field.
Truncated
The payload is shorter than the required fixed prefix or declared body.
Version(u16)
The payload version is not v1.
Flags(u16)
A must-be-zero flags field was non-zero.
Reserved(u32)
A must-be-zero reserved metadata field was non-zero.
EmptyVector
An upsert contained no vector coordinates.
EmptyDelete
A delete contained no document ids.
NonFiniteVector
A vector coordinate was NaN or infinite.
ValueKind(u8)
A metadata value kind has no assigned v1 meaning.
ValueLength
A value body has the wrong width for its declared kind.
Fields
Boolean(u8)
A Boolean metadata byte was neither zero nor one.
Utf8
A string metadata body was not valid UTF-8.
TrailingBytes(usize)
Bytes remain after the declared payload.
FieldBitmap(u32)
An upsert-v2 bitmap named a reserved or unimplemented field.
Lexical(String)
Active lexical reconstruction failed during WAL replay.
Columns(String)
Active typed-column reconstruction failed during WAL replay.
BatchPosition
A batch member position is not index < count with count >= 2.
OrphanBatchMember
A batch member does not continue the batch the log was replaying.
Trait Implementations§
Source§impl Clone for PayloadError
impl Clone for PayloadError
Source§impl Debug for PayloadError
impl Debug for PayloadError
Source§impl Display for PayloadError
impl Display for PayloadError
impl Eq for PayloadError
Source§impl Error for PayloadError
impl Error for PayloadError
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()