pub enum Failure {
NotACheckout,
MissingTool {
tool: &'static str,
install: &'static str,
},
Stage {
name: &'static str,
code: Option<i32>,
},
Io(String),
}Expand description
Why a build did not happen, phrased as the thing to do about it.
Variants§
NotACheckout
No book.toml in this directory or any parent.
MissingTool
A tool this needs is not on PATH.
Fields
Stage
A stage ran and exited nonzero. Its own output has already been written to the terminal, so this carries no captured text: the compiler’s errors belong on the screen, not inside a JSON string.
Fields
Io(String)
Something failed that is nobody’s fault but the filesystem’s.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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