[][src]Trait wayk_proto::error::ProtoErrorResultExt

pub trait ProtoErrorResultExt<T> where
    Self: Sized
{ fn chain(self, kind: ProtoErrorKind) -> Result<T, ProtoError>; fn or_else_desc<F, S>(self, f: F) -> Result<T, ProtoError>
    where
        F: FnOnce() -> S,
        S: Into<Cow<'static, str>>
, { ... }
fn or_desc<S>(self, desc: S) -> Result<T, ProtoError>
    where
        S: Into<Cow<'static, str>>
, { ... }
fn source(self, src: ProtoError) -> Result<T, ProtoError> { ... } }

Required methods

fn chain(self, kind: ProtoErrorKind) -> Result<T, ProtoError>

Loading content...

Provided methods

fn or_else_desc<F, S>(self, f: F) -> Result<T, ProtoError> where
    F: FnOnce() -> S,
    S: Into<Cow<'static, str>>, 

fn or_desc<S>(self, desc: S) -> Result<T, ProtoError> where
    S: Into<Cow<'static, str>>, 

fn source(self, src: ProtoError) -> Result<T, ProtoError>

Loading content...

Implementations on Foreign Types

impl<T> ProtoErrorResultExt<T> for Result<T, ProtoError>[src]

impl<T> ProtoErrorResultExt<T> for Option<T>[src]

Loading content...

Implementors

Loading content...