pub struct DynContextBuilder<Ctx>(/* private fields */);Expand description
A concrete wrapper that implements ContextBuilder via type-erased dispatch.
Allows heterogeneous chains of different concrete ContextBuilder types.
Implementations§
Source§impl<Ctx> DynContextBuilder<Ctx>
impl<Ctx> DynContextBuilder<Ctx>
Sourcepub fn new<T>(builder: T) -> Selfwhere
T: ContextBuilder<Context = Ctx> + 'static,
Ctx: Send,
pub fn new<T>(builder: T) -> Selfwhere
T: ContextBuilder<Context = Ctx> + 'static,
Ctx: Send,
Creates a DynContextBuilder from any ContextBuilder implementation.
The builder must have Context = Ctx.
Trait Implementations§
Auto Trait Implementations§
impl<Ctx> !RefUnwindSafe for DynContextBuilder<Ctx>
impl<Ctx> !UnwindSafe for DynContextBuilder<Ctx>
impl<Ctx> Freeze for DynContextBuilder<Ctx>
impl<Ctx> Send for DynContextBuilder<Ctx>
impl<Ctx> Sync for DynContextBuilder<Ctx>
impl<Ctx> Unpin for DynContextBuilder<Ctx>
impl<Ctx> UnsafeUnpin for DynContextBuilder<Ctx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more