pub enum WorkingMemoryError {
EntryTooLarge {
size_bytes: usize,
max_bytes: usize,
},
MemoryFull {
current_bytes: usize,
max_bytes: usize,
},
TooManyEntries {
count: usize,
max_count: usize,
},
KeyTooLong {
len: usize,
max_len: usize,
},
TtlTooLong {
ttl_secs: u64,
max_secs: u64,
},
}Expand description
Errors from working memory operations.
Variants§
EntryTooLarge
Entry too large
MemoryFull
Memory full
TooManyEntries
Too many entries
KeyTooLong
Key too long
TtlTooLong
TTL too long
Trait Implementations§
Source§impl Clone for WorkingMemoryError
impl Clone for WorkingMemoryError
Source§fn clone(&self) -> WorkingMemoryError
fn clone(&self) -> WorkingMemoryError
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 WorkingMemoryError
impl Debug for WorkingMemoryError
Source§impl Display for WorkingMemoryError
impl Display for WorkingMemoryError
Source§impl Error for WorkingMemoryError
impl Error for WorkingMemoryError
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 WorkingMemoryError
impl RefUnwindSafe for WorkingMemoryError
impl Send for WorkingMemoryError
impl Sync for WorkingMemoryError
impl Unpin for WorkingMemoryError
impl UnwindSafe for WorkingMemoryError
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