pub trait ResultAttachExt: ResultExt {
    // Required methods
    fn attach_kv<K, V>(
        self,
        key: K,
        value: V
    ) -> Result<Self::Ok, Report<Self::Context>>
       where K: Display,
             V: Display;
    fn attach_kv_debug<K, V>(
        self,
        key: K,
        value: V
    ) -> Result<Self::Ok, Report<Self::Context>>
       where K: Debug,
             V: Debug;
    fn attach_field_status<S>(
        self,
        name: &'static str,
        status: S
    ) -> Result<Self::Ok, Report<Self::Context>>
       where S: Display;
    fn attach_debug<A>(
        self,
        value: A
    ) -> Result<Self::Ok, Report<Self::Context>>
       where A: Debug;
}

Required Methods§

source

fn attach_kv<K, V>( self, key: K, value: V ) -> Result<Self::Ok, Report<Self::Context>>
where K: Display, V: Display,

source

fn attach_kv_debug<K, V>( self, key: K, value: V ) -> Result<Self::Ok, Report<Self::Context>>
where K: Debug, V: Debug,

source

fn attach_field_status<S>( self, name: &'static str, status: S ) -> Result<Self::Ok, Report<Self::Context>>
where S: Display,

source

fn attach_debug<A>(self, value: A) -> Result<Self::Ok, Report<Self::Context>>
where A: Debug,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, C> ResultAttachExt for Result<T, C>
where C: Context,

source§

fn attach_kv<K, V>(self, key: K, value: V) -> Result<T, Report<C>>
where K: Display, V: Display,

source§

fn attach_kv_debug<K, V>(self, key: K, value: V) -> Result<T, Report<C>>
where K: Debug, V: Debug,

source§

fn attach_field_status<S>( self, name: &'static str, status: S ) -> Result<T, Report<C>>
where S: Display,

source§

fn attach_debug<A>(self, value: A) -> Result<T, Report<C>>
where A: Debug,

Implementors§