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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for GlobError

fn from(t: T) -> T

Returns the argument unchanged.

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

fn to_string(&self) -> String

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

fn into(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<U> for GlobError where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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