Struct GlobError

struct GlobError { ... }

A glob iteration error.

This is typically returned when a particular path cannot be read to determine if its contents match the glob pattern. This is possible if the program lacks the appropriate permissions, for example.

Implementations

impl GlobError

fn path(self: &Self) -> &Path

The Path that the error corresponds to.

fn error(self: &Self) -> &io::Error

The error in question.

fn into_error(self: Self) -> io::Error

Consumes self, returning the raw underlying io::Error

impl Debug for GlobError

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

impl Display for GlobError

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

impl Error for GlobError

fn description(self: &Self) -> &str
fn cause(self: &Self) -> Option<&dyn Error>

impl Freeze for GlobError

impl RefUnwindSafe for GlobError

impl Send for GlobError

impl Sync for GlobError

impl Unpin for GlobError

impl UnwindSafe for GlobError

impl<T> Any for GlobError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for GlobError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for GlobError

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

impl<T> From for GlobError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for GlobError

fn to_string(self: &Self) -> String

impl<T, U> Into for GlobError

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for GlobError

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

impl<T, U> TryInto for GlobError

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