pub enum LockError {
ConcurrentExecution {
spec_id: String,
pid: u32,
created_ago: String,
},
StaleLock {
spec_id: String,
pid: u32,
age_secs: u64,
},
CorruptedLock {
reason: String,
},
AcquisitionFailed {
reason: String,
},
ReleaseFailed {
reason: String,
},
Io(Error),
}Expand description
Lock errors for file locking operations
Variants§
Trait Implementations§
Source§impl Error for LockError
impl Error for LockError
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<LockError> for XCheckerError
impl From<LockError> for XCheckerError
Source§impl UserFriendlyError for LockError
impl UserFriendlyError for LockError
Source§fn user_message(&self) -> String
fn user_message(&self) -> String
Get a user-friendly error message
Source§fn suggestions(&self) -> Vec<String>
fn suggestions(&self) -> Vec<String>
Get suggested actions to resolve the error
Source§fn category(&self) -> ErrorCategory
fn category(&self) -> ErrorCategory
Get the error category for grouping similar errors
Auto Trait Implementations§
impl Freeze for LockError
impl !RefUnwindSafe for LockError
impl Send for LockError
impl Sync for LockError
impl Unpin for LockError
impl UnsafeUnpin for LockError
impl !UnwindSafe for LockError
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