Enum pidlock::PidlockError
source · pub enum PidlockError {
LockExists,
InvalidState,
}
Expand description
Errors that may occur during the Pidlock
lifetime.
Variants§
LockExists
A lock already exists
InvalidState
An operation was attempted in the wrong state, e.g. releasing before acquiring.
Trait Implementations§
source§impl Debug for PidlockError
impl Debug for PidlockError
source§impl PartialEq for PidlockError
impl PartialEq for PidlockError
source§fn eq(&self, other: &PidlockError) -> bool
fn eq(&self, other: &PidlockError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PidlockError
Auto Trait Implementations§
impl RefUnwindSafe for PidlockError
impl Send for PidlockError
impl Sync for PidlockError
impl Unpin for PidlockError
impl UnwindSafe for PidlockError
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