Skip to main content

Contextable

Trait Contextable 

Source
pub trait Contextable<T> {
    // Required method
    fn context<S: ToString>(self, s: S) -> Result<T>;
}

Required Methods§

Source

fn context<S: ToString>(self, s: S) -> Result<T>

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, E: 'static + Send + Sync + Error> Contextable<T> for Result<T, E>

Source§

fn context<S: ToString>(self, s: S) -> Result<T>

Implementors§

Source§

impl<T> Contextable<T> for hyper_scripter::error::Result<T>