pub struct SwapFailure {
pub landed: Vec<PathBuf>,
pub not_written: Vec<PathBuf>,
pub at: PathBuf,
pub error: Error,
}Expand description
Everything that did and did not happen when a swap went wrong.
landed and not_written are both present because either alone is a lie by
omission. “3 of 4 written” tells somebody they have a problem; naming which
three tells them what their repository currently does on commit.
Fields§
§landed: Vec<PathBuf>§not_written: Vec<PathBuf>§at: PathBuf§error: ErrorTrait Implementations§
Source§impl Debug for SwapFailure
impl Debug for SwapFailure
Auto Trait Implementations§
impl !RefUnwindSafe for SwapFailure
impl !UnwindSafe for SwapFailure
impl Forget for SwapFailure
impl Freeze for SwapFailurewhere
*const u8 is !null: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<u8>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
impl Move for SwapFailure
impl Send for SwapFailure
impl Sync for SwapFailure
impl Unpin for SwapFailure
impl UnsafeUnpin for SwapFailurewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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