pub enum ByteStorageError {
InputTooLarge,
DecompressionBomb,
ChecksumMismatch,
CompressionFailed,
DecompressionFailed,
SizeValidationFailed,
SerializationFailed(String),
DeserializationFailed(String),
}Expand description
Error types for ByteStorage operations
Variants§
InputTooLarge
DecompressionBomb
ChecksumMismatch
CompressionFailed
DecompressionFailed
SizeValidationFailed
SerializationFailed(String)
DeserializationFailed(String)
Trait Implementations§
Source§impl Clone for ByteStorageError
impl Clone for ByteStorageError
Source§fn clone(&self) -> ByteStorageError
fn clone(&self) -> ByteStorageError
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 ByteStorageError
impl Debug for ByteStorageError
Source§impl Display for ByteStorageError
impl Display for ByteStorageError
Source§impl Error for ByteStorageError
impl Error for ByteStorageError
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 ByteStorageError
impl PartialEq for ByteStorageError
impl StructuralPartialEq for ByteStorageError
Auto Trait Implementations§
impl Freeze for ByteStorageError
impl RefUnwindSafe for ByteStorageError
impl Send for ByteStorageError
impl Sync for ByteStorageError
impl Unpin for ByteStorageError
impl UnwindSafe for ByteStorageError
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