pub struct InPlaceError {
pub code: &'static str,
pub message: String,
pub paths: Vec<(String, String)>,
pub fix: Vec<String>,
}Expand description
Why an in-place run refuses or stops.
Fields§
§code: &'static strDIRTY-CHECKOUT, INTENT-CHANGED, ….
message: StringWhat happened.
paths: Vec<(String, String)>The paths involved, with why.
fix: Vec<String>What to run: the first is fix:, the rest or:.
Implementations§
Source§impl InPlaceError
impl InPlaceError
Sourcepub fn is_stop(&self) -> bool
pub fn is_stop(&self) -> bool
A stop during the run (exit 23) rather than a refusal before it (14).
Sourcepub fn line(&self) -> String
pub fn line(&self) -> String
One line naming the code, for a run report’s reason and a saved
attempt: stopped[INTENT-CHANGED]: … (specs/x/spec.md: changed).
Sourcepub fn result(&self, command: &str) -> CommandResult
pub fn result(&self, command: &str) -> CommandResult
The command’s result, its code and fixes on the envelope.
Trait Implementations§
Source§impl Clone for InPlaceError
impl Clone for InPlaceError
Source§impl Debug for InPlaceError
impl Debug for InPlaceError
impl Eq for InPlaceError
Source§impl PartialEq for InPlaceError
impl PartialEq for InPlaceError
impl StructuralPartialEq for InPlaceError
Auto Trait Implementations§
impl Freeze for InPlaceError
impl RefUnwindSafe for InPlaceError
impl Send for InPlaceError
impl Sync for InPlaceError
impl Unpin for InPlaceError
impl UnsafeUnpin for InPlaceError
impl UnwindSafe for InPlaceError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.