Skip to main content

IoResultExt

Trait IoResultExt 

Source
pub(crate) trait IoResultExt<T> {
    // Required method
    fn at_path(self, path: impl Into<PathBuf>) -> Result<T, FilesError>;
}
Expand description

Attaches a path to an I/O error, turning it into PathError::Io.

Required Methods§

Source

fn at_path(self, path: impl Into<PathBuf>) -> Result<T, FilesError>

Turn the I/O error, if any, into a PathError::Io naming path.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> IoResultExt<T> for Result<T>

Source§

fn at_path(self, path: impl Into<PathBuf>) -> Result<T, FilesError>

Implementors§