pub trait ErrContext<E, T> {
    // Required method
    fn context(self, ctx: impl Display) -> Result<T, E>;

    // Provided method
    fn format(err: impl Display, ctx: impl Display) -> String { ... }
}

Required Methods§

source

fn context(self, ctx: impl Display) -> Result<T, E>

Provided Methods§

source

fn format(err: impl Display, ctx: impl Display) -> String

Implementations on Foreign Types§

source§

impl<T> ErrContext<CoreXError, T> for Result<T, CoreXError>

source§

fn context(self, ctx: impl Display) -> Result<T, CoreXError>

source§

impl<T> ErrContext<CoreXError, T> for Result<T, LssError>

source§

fn context(self, ctx: impl Display) -> Result<T, CoreXError>

source§

impl<T> ErrContext<StorageTemplateError, T> for Result<T, CatlibError>

source§

impl<T> ErrContext<CoreXError, T> for Result<T, CryptoError>

source§

fn context(self, ctx: impl Display) -> Result<T, CoreXError>

source§

impl<T> ErrContext<CoreXError, T> for Result<T, CatlibError>

source§

fn context(self, ctx: impl Display) -> Result<T, CoreXError>

source§

impl<T> ErrContext<StorageTemplateError, T> for Result<T, Error>

source§

impl<T> ErrContext<StorageTemplateError, T> for Result<T, Error>

source§

impl<T> ErrContext<StorageTemplateError, T> for Result<T, Error>

Implementors§