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§
fn badarg<C>(self, context: C) -> Result<T>
fn not_found<I, V, C>(self, ids: V, context: C) -> Result<T>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".