Skip to main content

Context

Trait Context 

Source
pub trait Context<T, E> {
    // Required method
    fn context(self, context: &'static str) -> Result<T, OrtError>;
}

Required Methods§

Source

fn context(self, context: &'static str) -> Result<T, OrtError>

Wrap the error value with additional context.

Implementations on Foreign Types§

Source§

impl<T, E> Context<T, E> for Result<T, E>
where E: Into<OrtError>,

Source§

fn context(self, context: &'static str) -> OrtResult<T>

Wrap the error value with additional context.

Implementors§