Trait IOContext

Source
pub trait IOContext<T> {
    // Required method
    fn io_context(self, msg: impl LazyStr) -> Result<T>;

    // Provided method
    fn path_context(
        self,
        msg: impl LazyStr,
        path: impl AsRef<Path>,
    ) -> Result<T>
       where Self: Sized { ... }
}

Required Methods§

Source

fn io_context(self, msg: impl LazyStr) -> Result<T>

Provided Methods§

Source

fn path_context(self, msg: impl LazyStr, path: impl AsRef<Path>) -> Result<T>
where Self: Sized,

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> IOContext<T> for Result<T>

Source§

fn io_context(self, msg: impl LazyStr) -> Result<T>

Implementors§