[][src]Trait mbus_api::ContextWrapperExt

pub trait ContextWrapperExt<C: Send + Sync> where
    Self: Sized
{ fn with_context(self, context: C) -> ContextWrapper<Self, C>; }

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

Required methods

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

Binds this API to a context.

Loading content...

Implementors

impl<T: Api<C> + Send + Sync, C: Clone + Send + Sync> ContextWrapperExt<C> for T[src]

Loading content...