pub struct DefaultContextFactory;Expand description
Default factory that delegates to crate::tools::ToolContext::from_seed.
Hosts that do not need custom ambient injection can use this directly.
Trait Implementations§
Source§impl<Ctx> ExecutionContextFactory<Ctx> for DefaultContextFactory
impl<Ctx> ExecutionContextFactory<Ctx> for DefaultContextFactory
Source§fn build(
&self,
seed: &ToolContextSeed,
app: Ctx,
deps: HostDependencies,
) -> ToolContext<Ctx>
fn build( &self, seed: &ToolContextSeed, app: Ctx, deps: HostDependencies, ) -> ToolContext<Ctx>
Build a ready-to-use
ToolContext from the durable seed, the
application context, and host-provided runtime dependencies.Auto Trait Implementations§
impl Freeze for DefaultContextFactory
impl RefUnwindSafe for DefaultContextFactory
impl Send for DefaultContextFactory
impl Sync for DefaultContextFactory
impl Unpin for DefaultContextFactory
impl UnsafeUnpin for DefaultContextFactory
impl UnwindSafe for DefaultContextFactory
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