pub enum FilesystemBackendError {
Show 13 variants
GetSessions(Error),
GetSessionName(OsString),
ReadValue(Error),
RemoveSession(Error),
RemoveValue(Error),
SessionRootMetadata(Error),
SessionRootOccupied(PathBuf),
TimeMarkerCreate(Error),
TimeMarkerInitValue(SystemTimeError),
TimeMarkerGetString(FromUtf8Error),
TimeMarkerParseValue(ParseIntError),
TimeMarkerRead(Error),
WriteValue(Error),
}
Available on crate feature
session
only.Expand description
An error occurred in filesystem backend
Variants§
GetSessions(Error)
Failed to get sessions list
GetSessionName(OsString)
Failed to convert session directory name to string
ReadValue(Error)
Failed to read a value
RemoveSession(Error)
Failed to remove session
RemoveValue(Error)
Failed to remove a value
SessionRootMetadata(Error)
Failed to get session root metadata
SessionRootOccupied(PathBuf)
Session directory is occupied by a file
TimeMarkerCreate(Error)
Failed to create time marker for a session
TimeMarkerInitValue(SystemTimeError)
Failed to get current time for time marker
TimeMarkerGetString(FromUtf8Error)
Failed to read data from time marker
TimeMarkerParseValue(ParseIntError)
Failed to parse value for a time marker
TimeMarkerRead(Error)
Failed to read time marker data from a file
WriteValue(Error)
Failed to write a value
Trait Implementations§
source§impl Debug for FilesystemBackendError
impl Debug for FilesystemBackendError
source§impl Display for FilesystemBackendError
impl Display for FilesystemBackendError
source§impl Error for FilesystemBackendError
impl Error for FilesystemBackendError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 FilesystemBackendError
impl !RefUnwindSafe for FilesystemBackendError
impl Send for FilesystemBackendError
impl Sync for FilesystemBackendError
impl Unpin for FilesystemBackendError
impl !UnwindSafe for FilesystemBackendError
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more