pub enum SessionError {
NotFound(String),
Corrupt(String),
VersionMismatch {
expected: String,
found: String,
},
SaveFailed(String),
LoadFailed(String),
}Expand description
Session-related errors.
Variants§
NotFound(String)
Session not found.
Corrupt(String)
Session file corrupt.
VersionMismatch
Version mismatch.
SaveFailed(String)
Save failed.
LoadFailed(String)
Load failed.
Trait Implementations§
Source§impl Clone for SessionError
impl Clone for SessionError
Source§fn clone(&self) -> SessionError
fn clone(&self) -> SessionError
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 SessionError
impl Debug for SessionError
Auto Trait Implementations§
impl Freeze for SessionError
impl RefUnwindSafe for SessionError
impl Send for SessionError
impl Sync for SessionError
impl Unpin for SessionError
impl UnwindSafe for SessionError
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