Trait ContextWrapperExt

Source
pub trait ContextWrapperExt<'a, C>
where Self: Sized,
{ // Required method fn with_context(&'a self, context: C) -> ContextWrapper<'a, Self, C>; }
Expand description

Trait to extend an API to make it easy to bind it to a context.

Required Methods§

Source

fn with_context(&'a self, context: C) -> ContextWrapper<'a, Self, C>

Binds this API to a context.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, T: Api<C> + Sized, C> ContextWrapperExt<'a, C> for T