ErrorContextExt

Trait ErrorContextExt 

Source
pub trait ErrorContextExt {
    // Required method
    fn context_sentinel(self, context: ErrorContext) -> SentinelError;
}
Expand description

Extension trait for adding context to errors

Required Methods§

Source

fn context_sentinel(self, context: ErrorContext) -> SentinelError

Add Sentinel-specific context to the error

Implementors§

Source§

impl<E> ErrorContextExt for E
where E: Error + Send + Sync + 'static,