pub enum FileLockError {
AlreadyLocked,
Io(Error),
}Expand description
An enumeration of possible errors which can occur while trying to acquire a lock.
Variants§
AlreadyLocked
The file is already locked by other process.
Io(Error)
The error occurred during I/O operations.
Trait Implementations§
Source§impl Debug for FileLockError
impl Debug for FileLockError
Source§impl Display for FileLockError
impl Display for FileLockError
Source§impl Error for FileLockError
impl Error for FileLockError
1.30.0 · 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 Freeze for FileLockError
impl !RefUnwindSafe for FileLockError
impl Send for FileLockError
impl Sync for FileLockError
impl Unpin for FileLockError
impl UnsafeUnpin for FileLockError
impl !UnwindSafe for FileLockError
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