[−][src]Trait balena_temen::error::ResultExt
Result extension
Required methods
fn context<K, V>(self, k: K, v: V) -> Result<T> where
K: Into<Cow<'static, str>>,
V: Into<Cow<'static, str>>,
K: Into<Cow<'static, str>>,
V: Into<Cow<'static, str>>,
fn context_with<F>(self, f: F) -> Result<T> where
F: FnOnce() -> (String, String),
F: FnOnce() -> (String, String),
Appends key, value pair to context of the last frame
Arguments
f
- A function which must return tuple (key, value)
fn frame(self) -> Result<T>
Appends new, anonymous, frame
Anonymous means that the frame does not have a name.
fn frame_with<F>(self, f: F) -> Result<T> where
F: FnOnce() -> String,
F: FnOnce() -> String,
fn frame_with_name<N>(self, name: N) -> Result<T> where
N: Into<Cow<'static, str>>,
N: Into<Cow<'static, str>>,
Implementors
impl<T> ResultExt<T> for Result<T>
[src]
fn context<K, V>(self, k: K, v: V) -> Result<T> where
K: Into<Cow<'static, str>>,
V: Into<Cow<'static, str>>,
[src]
K: Into<Cow<'static, str>>,
V: Into<Cow<'static, str>>,
fn context_with<F>(self, f: F) -> Result<T> where
F: FnOnce() -> (String, String),
[src]
F: FnOnce() -> (String, String),
fn frame(self) -> Result<T>
[src]
fn frame_with<F>(self, f: F) -> Result<T> where
F: FnOnce() -> String,
[src]
F: FnOnce() -> String,
fn frame_with_name<N>(self, name: N) -> Result<T> where
N: Into<Cow<'static, str>>,
[src]
N: Into<Cow<'static, str>>,