pub trait Context {
    type TransformType;

    // Required methods
    fn context(self, context: &'static str) -> Self::TransformType;
    fn with_context(self, f: impl FnOnce() -> String) -> Self::TransformType;
}

Required Associated Types§

Required Methods§

source

fn context(self, context: &'static str) -> Self::TransformType

source

fn with_context(self, f: impl FnOnce() -> String) -> Self::TransformType

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Context for Result<T, OpError>

§

type TransformType = Result<T, OpError>

source§

fn context(self, context: &'static str) -> Self::TransformType

source§

fn with_context(self, f: impl FnOnce() -> String) -> Self::TransformType

source§

impl<T, E: Into<OpErrorKind>> Context for Result<T, E>

§

type TransformType = Result<T, OpError>

source§

fn context(self, context: &'static str) -> Self::TransformType

source§

fn with_context(self, f: impl FnOnce() -> String) -> Self::TransformType

Implementors§