Struct GlobError

pub struct GlobError { /* private fields */ }

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) -> &Path

The Path that the error corresponds to.

fn error(&self) -> &Error

The error in question.

fn into_error(self) -> Error

Consumes self, returning the raw underlying io::Error

Trait Implementations

impl Debug for GlobError

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

impl Display for GlobError

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

impl Error for GlobError

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

Auto Trait Implementations

impl !RefUnwindSafe for GlobError

impl !UnwindSafe for GlobError

impl Freeze for GlobError

impl Send for GlobError

impl Sync for GlobError

impl Unpin for GlobError

impl UnsafeUnpin for GlobError

Blanket Implementations

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

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

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

impl<T> From<T> for GlobError

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

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

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

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