pub enum SessionStoreError {
Io(Error),
Serialization(String),
NotFound(SessionId),
Corrupted(SessionId),
Internal(String),
}Expand description
Errors from session store operations.
Backend-specific details (rusqlite, filesystem, etc.) are erased to strings so that the trait contract carries no I/O dependencies.
Variants§
Trait Implementations§
Source§impl Debug for SessionStoreError
impl Debug for SessionStoreError
Source§impl Display for SessionStoreError
impl Display for SessionStoreError
Source§impl Error for SessionStoreError
impl Error for SessionStoreError
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 From<Error> for SessionStoreError
impl From<Error> for SessionStoreError
Auto Trait Implementations§
impl Freeze for SessionStoreError
impl !RefUnwindSafe for SessionStoreError
impl Send for SessionStoreError
impl Sync for SessionStoreError
impl Unpin for SessionStoreError
impl UnsafeUnpin for SessionStoreError
impl !UnwindSafe for SessionStoreError
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