pub enum RecordError {
Schema(SchemaError),
Encode(String),
Decode(String),
TrailingData,
NonCanonicalEncoding,
MissingField(u32),
DuplicateField(u32),
TooManyFields(usize),
FieldTooLarge {
field_id: u32,
size: usize,
},
Crdt(CrdtError),
MergeUnavailable,
CausalNormalizationUnavailable,
}Expand description
A typed-record schema or canonical codec failure.
Variants§
Schema(SchemaError)
The generated or hand-written schema is invalid.
Encode(String)
A value could not be encoded.
Decode(String)
A value could not be decoded.
TrailingData
Bytes followed an otherwise complete value.
NonCanonicalEncoding
The input was valid CBOR but not its unique canonical representation.
MissingField(u32)
The record omitted a field required by its schema.
DuplicateField(u32)
A field ID appeared more than once.
TooManyFields(usize)
The record exceeded the field-count safety limit.
FieldTooLarge
One encoded field state exceeded the safety limit.
Crdt(CrdtError)
A replicated field rejected invalid or conflicting causal state.
A hand-written record did not provide a deterministic merge adapter.
A hand-written record did not provide commit-owned causal normalization.
Trait Implementations§
Source§impl Clone for RecordError
impl Clone for RecordError
Source§fn clone(&self) -> RecordError
fn clone(&self) -> RecordError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordError
impl Debug for RecordError
Source§impl Display for RecordError
impl Display for RecordError
Source§impl Error for RecordError
impl Error for RecordError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CrdtError> for RecordError
impl From<CrdtError> for RecordError
Source§impl From<SchemaError> for RecordError
impl From<SchemaError> for RecordError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RecordError
impl PartialEq for RecordError
impl Eq for RecordError
impl StructuralPartialEq for RecordError
Auto Trait Implementations§
impl Freeze for RecordError
impl RefUnwindSafe for RecordError
impl Send for RecordError
impl Sync for RecordError
impl Unpin for RecordError
impl UnwindSafe for RecordError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more