pub enum CoreMemoryError {
Full {
current_bytes: usize,
max_bytes: usize,
requested_bytes: usize,
},
BlockNotFound {
block_type: String,
},
BlockTooLarge {
size_bytes: usize,
max_bytes: usize,
},
TooManyBlocks {
count: usize,
max_count: usize,
},
}Expand description
Errors from core memory operations.
Variants§
Full
Core memory is full
Fields
BlockNotFound
Block not found
BlockTooLarge
Block too large
TooManyBlocks
Too many blocks
Trait Implementations§
Source§impl Clone for CoreMemoryError
impl Clone for CoreMemoryError
Source§fn clone(&self) -> CoreMemoryError
fn clone(&self) -> CoreMemoryError
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 CoreMemoryError
impl Debug for CoreMemoryError
Source§impl Display for CoreMemoryError
impl Display for CoreMemoryError
Source§impl Error for CoreMemoryError
impl Error for CoreMemoryError
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 CoreMemoryError
impl RefUnwindSafe for CoreMemoryError
impl Send for CoreMemoryError
impl Sync for CoreMemoryError
impl Unpin for CoreMemoryError
impl UnwindSafe for CoreMemoryError
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