pub enum ShimWriteError {
Refused(Vec<Refuse>),
Preflight {
at: PathBuf,
error: Error,
},
Swap(SwapFailure),
}Expand description
Why a set of shims was not written.
Variants§
Refused(Vec<Refuse>)
One or more paths are not ours to write. Every refusal is carried, not
just the first: somebody about to run --force should see all four.
Preflight
A failure before any destination was touched — an unbakeable path, or a staging write that could not happen (no space, no permission).
Swap(SwapFailure)
Staging succeeded and a rename did not. The only failure mode that can leave a directory partly written, which is why it carries the lists.
Trait Implementations§
Source§impl Debug for ShimWriteError
impl Debug for ShimWriteError
Auto Trait Implementations§
impl !RefUnwindSafe for ShimWriteError
impl !UnwindSafe for ShimWriteError
impl Freeze for ShimWriteError
impl Send for ShimWriteError
impl Sync for ShimWriteError
impl Unpin for ShimWriteError
impl UnsafeUnpin for ShimWriteError
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