pub enum LockError {
MissingLockfile {
path: PathBuf,
},
SpecGeneration {
action: &'static str,
source: Box<dyn Error + Send + Sync>,
},
Io {
action: &'static str,
path: PathBuf,
source: Error,
},
}Expand description
Typed errors emitted by any LockLifecyclePrimitive. Adapters
that need richer context wrap their domain errors in Source.
Variants§
MissingLockfile
Workspace lockfile (Cargo.lock / package-lock.json / etc.) is missing — operator must run the ecosystem’s bootstrap before any lock action.
SpecGeneration
Spec generation failed — wrap the adapter’s domain error.
Io
Filesystem error (read/write/delete).
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()
Auto Trait Implementations§
impl !RefUnwindSafe for LockError
impl !UnwindSafe for LockError
impl Freeze for LockError
impl Send for LockError
impl Sync for LockError
impl Unpin for LockError
impl UnsafeUnpin 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