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 Freeze for SwapFailure
impl Send for SwapFailure
impl Sync for SwapFailure
impl Unpin for SwapFailure
impl UnsafeUnpin for SwapFailure
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