pub enum FuError {
File(FileError),
GlobPattern(PatternError),
Io(Error),
Iter(IterError),
Nul(NulError),
Os(OsError),
Path(PathError),
Regex(Error),
String(StringError),
User(UserError),
Var(VarError),
WalkDir(Error),
}
Expand description
Define common error wrapper type
Variants§
File(FileError)
GlobPattern(PatternError)
Io(Error)
Iter(IterError)
Nul(NulError)
Os(OsError)
Path(PathError)
Regex(Error)
String(StringError)
User(UserError)
Var(VarError)
WalkDir(Error)
Implementations§
Source§impl FuError
impl FuError
Sourcepub fn is<T>(&self) -> boolwhere
T: Error + 'static,
pub fn is<T>(&self) -> boolwhere
T: Error + 'static,
Implemented directly on the Error
type to reduce casting required
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: Error + 'static,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: Error + 'static,
Implemented directly on the Error
type to reduce casting required
Sourcepub fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: Error + 'static,
pub fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: Error + 'static,
Implemented directly on the Error
type to reduce casting required
Trait Implementations§
Source§impl From<FuError> for RelicError
impl From<FuError> for RelicError
Source§fn from(err: FuError) -> RelicError
fn from(err: FuError) -> RelicError
Converts to this type from the input type.
Source§impl From<PatternError> for FuError
impl From<PatternError> for FuError
Source§fn from(err: PatternError) -> FuError
fn from(err: PatternError) -> FuError
Converts to this type from the input type.
Source§impl From<StringError> for FuError
impl From<StringError> for FuError
Source§fn from(err: StringError) -> FuError
fn from(err: StringError) -> FuError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FuError
impl !RefUnwindSafe for FuError
impl Send for FuError
impl Sync for FuError
impl Unpin for FuError
impl !UnwindSafe for FuError
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