pub enum DummyError {
BufferTooLarge {
requested: usize,
max: usize,
},
AllocationFailed,
BufferNotFound(u64),
NotMappable,
AlreadyMapped,
Other(String),
}Expand description
Dummy backend error.
Variants§
BufferTooLarge
Buffer size exceeds maximum.
AllocationFailed
Memory allocation failed.
BufferNotFound(u64)
Buffer not found.
NotMappable
Buffer is not mappable.
AlreadyMapped
Buffer already mapped.
Other(String)
Other error.
Trait Implementations§
Source§impl Clone for DummyError
impl Clone for DummyError
Source§fn clone(&self) -> DummyError
fn clone(&self) -> DummyError
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 DummyError
impl Debug for DummyError
Source§impl Display for DummyError
impl Display for DummyError
Source§impl Error for DummyError
impl Error for DummyError
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()
Auto Trait Implementations§
impl Freeze for DummyError
impl RefUnwindSafe for DummyError
impl Send for DummyError
impl Sync for DummyError
impl Unpin for DummyError
impl UnwindSafe for DummyError
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