pub enum DirLockError {
Locked(LockedError),
Lost(PathBuf),
SuspiciousLockFile(PathBuf),
Io(Error),
}Variants§
Locked(LockedError)
Lost(PathBuf)
The lock was reclaimed by somebody else while this handle still believed it held it. Every write through the handle has to stop: the directory now answers to another writer.
SuspiciousLockFile(PathBuf)
Something other than a regular file sits at the lock path. Reading or replacing it could write through a link the caller did not choose, so nothing is touched at all.
Io(Error)
Trait Implementations§
Source§impl Debug for DirLockError
impl Debug for DirLockError
Source§impl Display for DirLockError
impl Display for DirLockError
Source§impl Error for DirLockError
impl Error for DirLockError
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<DirLockError> for DatabaseError
impl From<DirLockError> for DatabaseError
Source§fn from(value: DirLockError) -> Self
fn from(value: DirLockError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DirLockError
impl !UnwindSafe for DirLockError
impl Freeze for DirLockError
impl Send for DirLockError
impl Sync for DirLockError
impl Unpin for DirLockError
impl UnsafeUnpin for DirLockError
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