Enum FuError

Source
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§

Implementations§

Source§

impl FuError

Source

pub fn is<T>(&self) -> bool
where T: Error + 'static,

Implemented directly on the Error type to reduce casting required

Source

pub fn downcast_ref<T>(&self) -> Option<&T>
where T: Error + 'static,

Implemented directly on the Error type to reduce casting required

Source

pub fn downcast_mut<T>(&mut self) -> Option<&mut T>
where T: Error + 'static,

Implemented directly on the Error type to reduce casting required

Source

pub fn source(&self) -> Option<&(dyn Error + 'static)>

Implemented directly on the Error type to reduce casting required

Trait Implementations§

Source§

impl AsMut<dyn Error> for FuError

Source§

fn as_mut(&mut self) -> &mut (dyn Error + 'static)

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<dyn Error> for FuError

Source§

fn as_ref(&self) -> &(dyn Error + 'static)

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Debug for FuError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for FuError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<Error> for FuError

Source§

fn from(err: Error) -> FuError

Converts to this type from the input type.
Source§

impl From<Error> for FuError

Source§

fn from(err: Error) -> FuError

Converts to this type from the input type.
Source§

impl From<Error> for FuError

Source§

fn from(err: Error) -> FuError

Converts to this type from the input type.
Source§

impl From<FileError> for FuError

Source§

fn from(err: FileError) -> FuError

Converts to this type from the input type.
Source§

impl From<FuError> for Error

Source§

fn from(err: FuError) -> Error

Converts to this type from the input type.
Source§

impl From<FuError> for RelicError

Source§

fn from(err: FuError) -> RelicError

Converts to this type from the input type.
Source§

impl From<IterError> for FuError

Source§

fn from(err: IterError) -> FuError

Converts to this type from the input type.
Source§

impl From<NulError> for FuError

Source§

fn from(err: NulError) -> FuError

Converts to this type from the input type.
Source§

impl From<OsError> for FuError

Source§

fn from(err: OsError) -> FuError

Converts to this type from the input type.
Source§

impl From<PathError> for FuError

Source§

fn from(err: PathError) -> FuError

Converts to this type from the input type.
Source§

impl From<PatternError> for FuError

Source§

fn from(err: PatternError) -> FuError

Converts to this type from the input type.
Source§

impl From<StringError> for FuError

Source§

fn from(err: StringError) -> FuError

Converts to this type from the input type.
Source§

impl From<UserError> for FuError

Source§

fn from(err: UserError) -> FuError

Converts to this type from the input type.
Source§

impl From<VarError> for FuError

Source§

fn from(err: VarError) -> FuError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,