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§
Sourcefn at_path(self, path: impl Into<PathBuf>) -> Result<T, FilesError>
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".