Trait edgedb_errors::ResultExt

source ·
pub trait ResultExt<T> {
    // Required methods
    fn context<C>(self, context: C) -> Result<T, Error>
       where C: Into<Cow<'static, str>>;
    fn with_context<C, F>(self, f: F) -> Result<T, Error>
       where C: Into<Cow<'static, str>>,
             F: FnOnce() -> C;
}

Required Methods§

source

fn context<C>(self, context: C) -> Result<T, Error>
where C: Into<Cow<'static, str>>,

source

fn with_context<C, F>(self, f: F) -> Result<T, Error>
where C: Into<Cow<'static, str>>, F: FnOnce() -> C,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> ResultExt<T> for Result<T, Error>

source§

fn context<C>(self, context: C) -> Result<T, Error>
where C: Into<Cow<'static, str>>,

source§

fn with_context<C, F>(self, f: F) -> Result<T, Error>
where C: Into<Cow<'static, str>>, F: FnOnce() -> C,

Implementors§