pub enum RegularFileLockError {
NotRegular,
Io(Error),
Publication(NamedWriteError<Error>),
}Expand description
A no-follow regular-file lock could not be acquired.
Variants§
NotRegular
The opened entry is not a regular file.
Io(Error)
The filesystem operation failed.
Publication(NamedWriteError<Error>)
Durable lock-file creation failed, retaining publication and cleanup evidence.
Trait Implementations§
Source§impl Debug for RegularFileLockError
impl Debug for RegularFileLockError
Source§impl Display for RegularFileLockError
impl Display for RegularFileLockError
Source§impl Error for RegularFileLockError
impl Error for RegularFileLockError
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<RegularFileLockError> for Error
Preserve native I/O identity or retain the complete admission/publication cause.
impl From<RegularFileLockError> for Error
Preserve native I/O identity or retain the complete admission/publication cause.
Publication failures are wrapped intact with io::ErrorKind::Other; inspect
the contained RegularFileLockError before deciding whether to retry.
Source§fn from(error: RegularFileLockError) -> Self
fn from(error: RegularFileLockError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RegularFileLockError
impl !UnwindSafe for RegularFileLockError
impl Freeze for RegularFileLockError
impl Send for RegularFileLockError
impl Sync for RegularFileLockError
impl Unpin for RegularFileLockError
impl UnsafeUnpin for RegularFileLockError
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