pub enum SessionStoreError {
Io {
path: PathBuf,
source: Error,
},
Json(Error),
TurnNotFound {
session: String,
turn: u64,
},
CreateDir {
path: PathBuf,
source: Error,
},
}Expand description
Errors produced by the session store.
Variants§
Io
IO error while reading or writing a session artifact.
Json(Error)
A JSON (de)serialization error.
TurnNotFound
The requested turn does not exist in the index.
CreateDir
The store directory could not be created.
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SessionStoreError
impl !UnwindSafe for SessionStoreError
impl Freeze for SessionStoreError
impl Send for SessionStoreError
impl Sync for SessionStoreError
impl Unpin for SessionStoreError
impl UnsafeUnpin 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