pub enum GenerateError {
Schema {
code: &'static str,
context: String,
message: String,
help: String,
},
Tool {
tool: String,
message: String,
help: String,
},
Io {
path: PathBuf,
source: Error,
},
Drift {
paths: Vec<PathBuf>,
},
}Expand description
Recoverable, plain-text build diagnostics with stable machine-readable codes.
Variants§
Schema
Invalid schema, including its descriptor-qualified source context.
Fields
Tool
An external compiler is missing or failed.
Fields
Io
Filesystem failure with the owning path.
Drift
Check mode found stale or absent output.
Implementations§
Trait Implementations§
Source§impl Debug for GenerateError
impl Debug for GenerateError
Source§impl Display for GenerateError
impl Display for GenerateError
Source§impl Error for GenerateError
impl Error for GenerateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for GenerateError
impl !UnwindSafe for GenerateError
impl Freeze for GenerateError
impl Send for GenerateError
impl Sync for GenerateError
impl Unpin for GenerateError
impl UnsafeUnpin for GenerateError
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