pub trait FileExt {
// Required method
fn filesystem(&self) -> Result<FileSystemKind, Error>;
}
Expand description
An extension trait for File
that allows querying the kind of filesystem it resides on.
Required Methods§
Sourcefn filesystem(&self) -> Result<FileSystemKind, Error>
fn filesystem(&self) -> Result<FileSystemKind, Error>
Query the filesystem that this file resides on.
§Errors
Note that a variant of std::io::Error
may be returned,
which can indicate a number of error conditions
such as corrupted data, insufficient permissions, etc.