Enum ErrorKind

#[non_exhaustive]
pub enum ErrorKind

Error kinds

Variants

Generic(String)

Generic error

May be used in cases where a platform specific error is mapped to this type, or for opaque internal errors.

Io(Error)

I/O errors.

PathNotFound

A path does not exist.

WatchNotFound

Attempted to remove a watch that does not exist.

InvalidConfig(Config)

An invalid value was passed as runtime configuration.

MaxFilesWatch

A watch limit was reached: an inotify watch limit, a kqueue descriptor limit, or notify's FSEvents root limit.

WatchStartFailed

Starting or restarting filesystem event delivery failed without a more specific error.

The FSEvents backend returns this when FSEventStreamCreate returns null or FSEventStreamStart returns false. This kind does not indicate whether retrying will succeed.

Trait Implementations

impl Debug for ErrorKind

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

Auto Trait Implementations

impl !RefUnwindSafe for ErrorKind

impl !UnwindSafe for ErrorKind

impl Freeze for ErrorKind

impl Send for ErrorKind

impl Sync for ErrorKind

impl Unpin for ErrorKind

impl UnsafeUnpin for ErrorKind

Blanket Implementations

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

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

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

impl<T> From<T> for ErrorKind

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

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

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