pub enum TreeError {
DirectoryNotFound(String),
NotADirectory(String),
GlobError(GlobError),
PatternError(PatternError),
RecipeEntryError(RecipeEntryError),
StripPrefixError(String),
}Expand description
Errors that can occur when building a recipe tree.
Variants§
DirectoryNotFound(String)
NotADirectory(String)
GlobError(GlobError)
PatternError(PatternError)
RecipeEntryError(RecipeEntryError)
StripPrefixError(String)
Trait Implementations§
Source§impl Error for TreeError
impl Error for TreeError
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<PatternError> for TreeError
impl From<PatternError> for TreeError
Source§fn from(source: PatternError) -> Self
fn from(source: PatternError) -> Self
Converts to this type from the input type.
Source§impl From<RecipeEntryError> for TreeError
impl From<RecipeEntryError> for TreeError
Source§fn from(source: RecipeEntryError) -> Self
fn from(source: RecipeEntryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TreeError
impl !UnwindSafe for TreeError
impl Freeze for TreeError
impl Send for TreeError
impl Sync for TreeError
impl Unpin for TreeError
impl UnsafeUnpin for TreeError
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