Skip to main content

ContextExt

Trait ContextExt 

Source
pub trait ContextExt<T, E>: Context<T, E> {
    // Required methods
    fn badarg<C>(self, context: C) -> Result<T>
       where C: Display + Send + Sync + 'static;
    fn not_found<I, V, C>(self, ids: V, context: C) -> Result<T>
       where V: IntoIterator<Item = I>,
             I: Display,
             C: Display + Send + Sync + 'static;
}
Expand description

Extension trait for adding bark-server-specific error info.

Required Methods§

Source

fn badarg<C>(self, context: C) -> Result<T>
where C: Display + Send + Sync + 'static,

Source

fn not_found<I, V, C>(self, ids: V, context: C) -> Result<T>
where V: IntoIterator<Item = I>, I: Display, C: Display + Send + Sync + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<R, T, E> ContextExt<T, E> for R
where R: Context<T, E>,