#[non_exhaustive]pub enum WireError {
Show 25 variants
OwnershipViolation,
ZeroSequenceRecord {
replica: u64,
kind: &'static str,
},
ZeroSequenceAdd {
replica: u64,
},
ZeroSequenceRemove {
replica: u64,
},
UnexpectedEof,
InvalidTag,
TrailingBytes,
LengthOverflow,
RecordCollision,
DuplicateEntry,
NonCanonicalOrder,
IntegrityMismatch,
InvalidUtf8,
MissingShape,
LegacyEventLogFrame {
found: LegacyFrame,
},
DeltaTypeMismatch,
ReplicaCountMismatch {
expected: usize,
actual: usize,
},
ArityKindMismatch,
VersionAuthorLimitExceeded {
max_authors: usize,
},
VersionZeroReplicaLimitExceeded {
max_zero_replicas: usize,
},
CollectionElementLimitExceeded {
max_elements: usize,
},
NestedRecordLimitExceeded {
max_records: usize,
},
RecordLimitExceeded {
max_records: usize,
},
DefaultRecordLimitExceeded {
max_records: usize,
},
NonCanonicalVersionVector,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OwnershipViolation
ZeroSequenceRecord
A sequence-0 record for a carrier without a more specific zero error.
ZeroSequenceAdd
An OR-Set add record at sequence 0. An add mints a token at its record
ID, and the Lean ownership rule allocates tokens only at positive
sequences (RecordKernel.allocateToken, RecordKernel.permitted).
Fields
replica: u64Author of the refused record. Its sequence is 0.
ZeroSequenceRemove
An OR-Set remove record at sequence 0, forbidden by RecordKernel.permitted.
Fields
replica: u64Author of the refused record. Its sequence is 0.
UnexpectedEof
InvalidTag
TrailingBytes
LengthOverflow
RecordCollision
DuplicateEntry
NonCanonicalOrder
A state entry list is not in ascending encoder order.
IntegrityMismatch
InvalidUtf8
MissingShape
A fixed-domain log constructed or saved without its arity.
LegacyEventLogFrame
A valid EventLog frame from an earlier encoder. Nothing was decoded;
migrate it once with EventLog::migrate_legacy_wire_bytes_for.
For tag 0x02, check an old-file checksum or compare a second copy first;
see that method’s warning about undetected changed bits.
Fields
found: LegacyFrameDeltaTypeMismatch
ReplicaCountMismatch
ArityKindMismatch
Fixed and unbounded replica domains are incompatible.
VersionAuthorLimitExceeded
Fields
VersionZeroReplicaLimitExceeded
Fields
max_zero_replicas: usizeCollectionElementLimitExceeded
Fields
max_elements: usizeNestedRecordLimitExceeded
Fields
max_records: usizeRecordLimitExceeded
Fields
max_records: usizeDefaultRecordLimitExceeded
An omitted limit reached the default record budget.
Fields
max_records: usizeNonCanonicalVersionVector
Trait Implementations§
Source§impl Error for WireError
impl Error for WireError
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()
1.0.0 · Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
replaced by Error::source, which can support downcasting
Source§fn provide<'a>(&'a self, request: &mut Request<'a>)
fn provide<'a>(&'a self, request: &mut Request<'a>)
error_generic_member_access)Source§impl From<DecodeError> for WireError
impl From<DecodeError> for WireError
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Source§impl From<LegacyFrame> for WireError
impl From<LegacyFrame> for WireError
Source§fn from(found: LegacyFrame) -> Self
fn from(found: LegacyFrame) -> Self
Source§impl From<WireError> for DecodeError
impl From<WireError> for DecodeError
impl Copy for WireError
impl Eq for WireError
impl StructuralPartialEq for WireError
Auto Trait Implementations§
impl Freeze for WireError
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnsafeUnpin for WireError
impl UnwindSafe for WireError
Blanket Implementations§
Source§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
Source§fn type_id(&self) -> TypeId
fn type_id(&self) -> TypeId
TypeId of self. Read moreSource§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
Source§fn borrow(&self) -> &T
fn borrow(&self) -> &T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)self to dest. Read moreSource§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§fn into(self) -> U
fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
Source§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
Source§impl<T> ToString for Twhere
T: Display + ?Sized,
impl<T> ToString for Twhere
T: Display + ?Sized,
Source§fn to_string(&self) -> String
fn to_string(&self) -> String
String. Read more