[−][src]Enum simplelock::SimpleLockError
SimpleLock's Error type.
Variants
The Lock was already taken by another process, we cannot lock.
This will only be returned if the LockConfig
provided explicitly
disables hang_lock
. In other-words, if we want to fail immediately
on the inability to lock.
The name given on Lock creation (either with default_lock
or an implementation's constructor) is invalid.
This can be due to OS path name restrictions or being invalid unicode, etc.
UnableToUnlock(String)
We failed to unlock the Lock.
This can be due to a number of issues. Using FileLock
as an example,
if the temporary file disappears due to an unreliable OS File-Cleaner,
its permissions change out-from-under-us, etc.
The File Descriptor was created with permissions you do not currently have.
This may happen if the program was executed as a super-user and failed to clean up open files. If not using the provided utility functionality, please revisit them to see if any fit your needs. They may handle an edge-case your application hits.
Thrown when calling default_lock
and no feature flag was enabled.
UnknownError(String)
An unexpected error from one of the Lock implementations. If this happens, please file a ticket with us as we would like to harden this library over time.
Trait Implementations
impl Debug for SimpleLockError
[src]
impl Display for SimpleLockError
[src]
impl Eq for SimpleLockError
[src]
impl Error for SimpleLockError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Errno> for SimpleLockError
[src]
impl From<Error> for SimpleLockError
[src]
impl From<Error> for SimpleLockError
[src]
impl From<ErrorKind> for SimpleLockError
[src]
impl Ord for SimpleLockError
[src]
fn cmp(&self, other: &SimpleLockError) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<SimpleLockError> for SimpleLockError
[src]
fn eq(&self, other: &SimpleLockError) -> bool
[src]
fn ne(&self, other: &SimpleLockError) -> bool
[src]
impl PartialOrd<SimpleLockError> for SimpleLockError
[src]
fn partial_cmp(&self, other: &SimpleLockError) -> Option<Ordering>
[src]
fn lt(&self, other: &SimpleLockError) -> bool
[src]
fn le(&self, other: &SimpleLockError) -> bool
[src]
fn gt(&self, other: &SimpleLockError) -> bool
[src]
fn ge(&self, other: &SimpleLockError) -> bool
[src]
impl StructuralEq for SimpleLockError
[src]
impl StructuralPartialEq for SimpleLockError
[src]
Auto Trait Implementations
impl RefUnwindSafe for SimpleLockError
impl Send for SimpleLockError
impl Sync for SimpleLockError
impl Unpin for SimpleLockError
impl UnwindSafe for SimpleLockError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,