pub enum CollectionError {
Codec(CodecError),
Corrupt(&'static str),
Format,
Checksum,
Budget,
Growth,
NotEmpty,
Poisoned,
Bounds,
Wire(Error),
Cell(StableCellPayloadError),
}Expand description
CollectionError
A rejected collection operation. Encoding, validation and capacity errors precede writes; backing panics still follow the host’s failure contract.
Variants§
Codec(CodecError)
Application encoding or declared size is invalid.
Corrupt(&'static str)
The persisted record or collection structure is invalid.
Format
The bytes belong to another format.
Checksum
Record integrity verification failed.
Budget
A record, arithmetic operation or allocation exceeds its resource budget.
Growth
Capacity could not be reserved.
NotEmpty
Creation was attempted in nonempty memory.
Poisoned
A prior backing failure prevents further access through this owner.
Bounds
An index or range is invalid.
Wire(Error)
Bounded Wire encoding or decoding failed.
Cell(StableCellPayloadError)
Cell envelope admission failed before reading its payload.
Trait Implementations§
Source§impl Clone for CollectionError
impl Clone for CollectionError
impl Copy for CollectionError
Source§impl Debug for CollectionError
impl Debug for CollectionError
Source§impl Display for CollectionError
impl Display for CollectionError
impl Eq for CollectionError
Source§impl Error for CollectionError
impl Error for CollectionError
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<CodecError> for CollectionError
impl From<CodecError> for CollectionError
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CollectionError
impl From<Error> for CollectionError
Source§impl From<StableCellPayloadError> for CollectionError
impl From<StableCellPayloadError> for CollectionError
Source§fn from(source: StableCellPayloadError) -> Self
fn from(source: StableCellPayloadError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CollectionError
impl PartialEq for CollectionError
impl StructuralPartialEq for CollectionError
Auto Trait Implementations§
impl Freeze for CollectionError
impl RefUnwindSafe for CollectionError
impl Send for CollectionError
impl Sync for CollectionError
impl Unpin for CollectionError
impl UnsafeUnpin for CollectionError
impl UnwindSafe for CollectionError
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