pub enum SearchError {
GlobalJustfileInit,
GlobalJustfileNotFound,
Io {
directory: PathBuf,
io_error: Error,
},
JustfileHadNoParent {
path: PathBuf,
},
MultipleCandidates {
candidates: BTreeSet<PathBuf>,
},
NotFound,
}
Variants§
Trait Implementations§
Source§impl Debug for SearchError
impl Debug for SearchError
Source§impl Display for SearchError
impl Display for SearchError
Source§impl Error for SearchError
impl Error for SearchError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for SearchError
impl ErrorCompat for SearchError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl<'src> From<SearchError> for Error<'src>
impl<'src> From<SearchError> for Error<'src>
Source§fn from(search_error: SearchError) -> Self
fn from(search_error: SearchError) -> Self
Converts to this type from the input type.
Source§impl IntoError<SearchError> for GlobalJustfileInitSnafu
impl IntoError<SearchError> for GlobalJustfileInitSnafu
Source§fn into_error(self, error: Self::Source) -> SearchError
fn into_error(self, error: Self::Source) -> SearchError
Combine the information to produce the error
Source§impl IntoError<SearchError> for GlobalJustfileNotFoundSnafu
impl IntoError<SearchError> for GlobalJustfileNotFoundSnafu
Source§fn into_error(self, error: Self::Source) -> SearchError
fn into_error(self, error: Self::Source) -> SearchError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<SearchError> for IoSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<SearchError> for IoSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> SearchError
fn into_error(self, error: Self::Source) -> SearchError
Combine the information to produce the error
Source§impl<__T0> IntoError<SearchError> for JustfileHadNoParentSnafu<__T0>
impl<__T0> IntoError<SearchError> for JustfileHadNoParentSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> SearchError
fn into_error(self, error: Self::Source) -> SearchError
Combine the information to produce the error
Source§impl<__T0> IntoError<SearchError> for MultipleCandidatesSnafu<__T0>
impl<__T0> IntoError<SearchError> for MultipleCandidatesSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> SearchError
fn into_error(self, error: Self::Source) -> SearchError
Combine the information to produce the error
Source§impl IntoError<SearchError> for NotFoundSnafu
impl IntoError<SearchError> for NotFoundSnafu
Source§fn into_error(self, error: Self::Source) -> SearchError
fn into_error(self, error: Self::Source) -> SearchError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for SearchError
impl !RefUnwindSafe for SearchError
impl Send for SearchError
impl Sync for SearchError
impl Unpin for SearchError
impl !UnwindSafe for SearchError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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