pub enum VfsError {
    IoError(Error),
    FileNotFound {
        path: String,
    },
    InvalidPath {
        path: String,
    },
    Other {
        message: String,
    },
    WithContext {
        context: String,
        cause: Box<VfsError>,
    },
    NotSupported,
}
Expand description

The error type of this crate

Variants

IoError(Error)

A generic IO error

FileNotFound

Fields

path: String

The path of the file not found

The file or directory at the given path could not be found

InvalidPath

Fields

path: String

The invalid path

The given path is invalid, e.g. because contains ‘.’ or ‘..’

Other

Fields

message: String

The generic error message

Generic error variant

WithContext

Fields

context: String

The context error message

cause: Box<VfsError>

The underlying error

Generic error context, used for adding context to an error (like a path)

NotSupported

Functionality not supported by this filesystem

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.