pub enum MkError {
Lex(LexError),
Parse(ParseError),
Var(VarError),
Graph(GraphError),
Io(Error),
Shell(ShellError),
Recipe(RecipeError),
Sched(SchedError),
Include(IncludeError),
}Expand description
Top-level error for all mk-core operations.
Variants§
Lex(LexError)
Parse(ParseError)
Var(VarError)
Graph(GraphError)
Io(Error)
Shell(ShellError)
Recipe(RecipeError)
Sched(SchedError)
Include(IncludeError)
Trait Implementations§
Source§impl Error for MkError
impl Error for MkError
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()
Source§impl From<GraphError> for MkError
impl From<GraphError> for MkError
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Source§impl From<IncludeError> for MkError
impl From<IncludeError> for MkError
Source§fn from(source: IncludeError) -> Self
fn from(source: IncludeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for MkError
impl From<ParseError> for MkError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<RecipeError> for MkError
impl From<RecipeError> for MkError
Source§fn from(source: RecipeError) -> Self
fn from(source: RecipeError) -> Self
Converts to this type from the input type.
Source§impl From<SchedError> for MkError
impl From<SchedError> for MkError
Source§fn from(source: SchedError) -> Self
fn from(source: SchedError) -> Self
Converts to this type from the input type.
Source§impl From<ShellError> for MkError
impl From<ShellError> for MkError
Source§fn from(source: ShellError) -> Self
fn from(source: ShellError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MkError
impl !UnwindSafe for MkError
impl Freeze for MkError
impl Send for MkError
impl Sync for MkError
impl Unpin for MkError
impl UnsafeUnpin for MkError
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