pub enum CommitCodecError {
TooManyDependencies(usize),
TooManySchemas(usize),
TooManyOperations(usize),
RecordIdTooLarge(usize),
OperationPayloadTooLarge(usize),
CiphertextTooLarge(usize),
UnknownOperationKind(u8),
UnsupportedFormat,
InvalidEncoding(String),
NonCanonicalEncoding,
}Expand description
Commit format validation or decoding failure.
Variants§
TooManyDependencies(usize)
A commit declared too many causal dependencies.
TooManySchemas(usize)
A commit declared too many schema references.
TooManyOperations(usize)
A transaction contained too many operations.
RecordIdTooLarge(usize)
A record key exceeded the protocol limit.
OperationPayloadTooLarge(usize)
An operation payload exceeded the protocol limit.
CiphertextTooLarge(usize)
Encrypted commit bytes exceeded the protocol limit.
UnknownOperationKind(u8)
An unknown operation opcode was encountered.
UnsupportedFormat
The object format major, minor, or kind is unsupported.
InvalidEncoding(String)
The binary object was malformed or violated a resource bound.
NonCanonicalEncoding
The object was valid CBOR but not the unique canonical representation.
Trait Implementations§
Source§impl Clone for CommitCodecError
impl Clone for CommitCodecError
Source§fn clone(&self) -> CommitCodecError
fn clone(&self) -> CommitCodecError
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 CommitCodecError
impl Debug for CommitCodecError
Source§impl Display for CommitCodecError
impl Display for CommitCodecError
Source§impl Error for CommitCodecError
impl Error for CommitCodecError
1.30.0 · 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 PartialEq for CommitCodecError
impl PartialEq for CommitCodecError
impl Eq for CommitCodecError
impl StructuralPartialEq for CommitCodecError
Auto Trait Implementations§
impl Freeze for CommitCodecError
impl RefUnwindSafe for CommitCodecError
impl Send for CommitCodecError
impl Sync for CommitCodecError
impl Unpin for CommitCodecError
impl UnwindSafe for CommitCodecError
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