pub enum SessionKvError {
LimitExceeded {
operation: &'static str,
key: String,
limit: SessionKvLimitKind,
},
InvalidKey {
operation: &'static str,
key: String,
reason: &'static str,
},
Backend {
operation: &'static str,
message: String,
},
}Variants§
LimitExceeded
A bound was exceeded. key is rendered lossily for the message only;
the value never appears.
InvalidKey
An empty key, or one the implementation otherwise refuses.
Backend
The backing store failed for a reason the caller cannot fix by retrying with a smaller value.
Trait Implementations§
Source§impl Clone for SessionKvError
impl Clone for SessionKvError
Source§impl Debug for SessionKvError
impl Debug for SessionKvError
Source§impl Display for SessionKvError
impl Display for SessionKvError
impl Eq for SessionKvError
Source§impl Error for SessionKvError
impl Error for SessionKvError
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 SessionKvError
impl PartialEq for SessionKvError
impl StructuralPartialEq for SessionKvError
Auto Trait Implementations§
impl Freeze for SessionKvError
impl RefUnwindSafe for SessionKvError
impl Send for SessionKvError
impl Sync for SessionKvError
impl Unpin for SessionKvError
impl UnsafeUnpin for SessionKvError
impl UnwindSafe for SessionKvError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.