Trait StdIoErrorExt

Source
pub trait StdIoErrorExt {
    // Required method
    fn wrap_io_err_with<C>(self, c: impl FnOnce() -> C) -> Self
       where Self: Sized,
             C: Display + Send + Sync + 'static;

    // Provided methods
    fn wrap_io_err<C>(self, c: C) -> Self
       where Self: Sized,
             C: Display + Send + Sync + 'static { ... }
    fn with_io_context<C>(self, c: impl FnOnce() -> C) -> Self
       where Self: Sized,
             C: Display + Send + Sync + 'static { ... }
    fn io_context<C>(self, c: C) -> Self
       where Self: Sized,
             C: Display + Send + Sync + 'static { ... }
}

Required Methods§

Source

fn wrap_io_err_with<C>(self, c: impl FnOnce() -> C) -> Self
where Self: Sized, C: Display + Send + Sync + 'static,

Provided Methods§

Source

fn wrap_io_err<C>(self, c: C) -> Self
where Self: Sized, C: Display + Send + Sync + 'static,

Source

fn with_io_context<C>(self, c: impl FnOnce() -> C) -> Self
where Self: Sized, C: Display + Send + Sync + 'static,

Source

fn io_context<C>(self, c: C) -> Self
where Self: Sized, C: Display + Send + Sync + 'static,

Implementations on Foreign Types§

Source§

impl<T> StdIoErrorExt for Result<T>

Source§

fn wrap_io_err_with<C>(self, c: impl FnOnce() -> C) -> Self
where C: Display + Send + Sync + 'static,

Implementors§