pub enum DequeError {
Io(String),
InvalidCapacity,
InvalidMagic,
CapacityMismatch {
file_capacity: u64,
requested: u64,
},
SlotBytesMismatch {
file_slot_bytes: u32,
type_slot_bytes: u32,
},
Full,
Marshal(MarshalError),
}Expand description
Errors returned by SharedDeque operations.
Variants§
Io(String)
InvalidCapacity
InvalidMagic
CapacityMismatch
SlotBytesMismatch
Full
Marshal(MarshalError)
Trait Implementations§
Source§impl Clone for DequeError
impl Clone for DequeError
Source§fn clone(&self) -> DequeError
fn clone(&self) -> DequeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DequeError
impl Debug for DequeError
impl Eq for DequeError
Source§impl From<DequeError> for ApiError
impl From<DequeError> for ApiError
Source§fn from(e: DequeError) -> Self
fn from(e: DequeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DequeError
impl From<Error> for DequeError
Source§impl From<MarshalError> for DequeError
impl From<MarshalError> for DequeError
Source§fn from(e: MarshalError) -> Self
fn from(e: MarshalError) -> Self
Converts to this type from the input type.
Source§impl From<PushError> for DequeError
impl From<PushError> for DequeError
Source§impl PartialEq for DequeError
impl PartialEq for DequeError
Source§fn eq(&self, other: &DequeError) -> bool
fn eq(&self, other: &DequeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DequeError
Auto Trait Implementations§
impl Freeze for DequeError
impl RefUnwindSafe for DequeError
impl Send for DequeError
impl Sync for DequeError
impl Unpin for DequeError
impl UnsafeUnpin for DequeError
impl UnwindSafe for DequeError
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