Trait ErrorContext

Source
pub trait ErrorContext: 'static {
    // Required method
    fn context(&self) -> &str;
}
Expand description

Error context type.

Expected usage is use string as context.

See module level documentation for usage.

Required Methods§

Source

fn context(&self) -> &str

Implementors§

Source§

impl<S: 'static + AsRef<str>> ErrorContext for S