IoErrorContext

Trait IoErrorContext 

Source
pub trait IoErrorContext<T> {
    // Required methods
    fn with_path<P: AsRef<Path>>(self, path: P) -> Result<T, WrappedIoError>;
    fn with_str<S: Into<String>>(self, context: S) -> Result<T, WrappedIoError>;
}

Required Methods§

Source

fn with_path<P: AsRef<Path>>(self, path: P) -> Result<T, WrappedIoError>

Source

fn with_str<S: Into<String>>(self, context: S) -> Result<T, WrappedIoError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> IoErrorContext<T> for Result<T, Error>

Source§

fn with_path<P: AsRef<Path>>(self, path: P) -> Result<T, WrappedIoError>

Source§

fn with_str<S: Into<String>>(self, context: S) -> Result<T, WrappedIoError>

Implementors§