pub struct RunnerConfigBuilder<A, G, S> { /* private fields */ }Expand description
A typestate builder for constructing a Runner.
The three type parameters track whether the required fields have been
provided. build() is only available when all three are Has*.
Implementations§
Source§impl<A, G, S> RunnerConfigBuilder<A, G, S>
impl<A, G, S> RunnerConfigBuilder<A, G, S>
Sourcepub fn app_name(
self,
name: impl Into<String>,
) -> RunnerConfigBuilder<HasAppName, G, S>
pub fn app_name( self, name: impl Into<String>, ) -> RunnerConfigBuilder<HasAppName, G, S>
Set the application name (required).
Sourcepub fn agent(self, agent: Arc<dyn Agent>) -> RunnerConfigBuilder<A, HasAgent, S>
pub fn agent(self, agent: Arc<dyn Agent>) -> RunnerConfigBuilder<A, HasAgent, S>
Set the root agent (required).
Sourcepub fn session_service(
self,
service: Arc<dyn SessionService>,
) -> RunnerConfigBuilder<A, G, HasSessionService>
pub fn session_service( self, service: Arc<dyn SessionService>, ) -> RunnerConfigBuilder<A, G, HasSessionService>
Set the session service (required).
Source§impl<A, G, S> RunnerConfigBuilder<A, G, S>
impl<A, G, S> RunnerConfigBuilder<A, G, S>
Sourcepub fn artifact_service(self, service: Arc<dyn ArtifactService>) -> Self
pub fn artifact_service(self, service: Arc<dyn ArtifactService>) -> Self
Set the artifact service (optional).
Sourcepub fn memory_service(self, service: Arc<dyn Memory>) -> Self
pub fn memory_service(self, service: Arc<dyn Memory>) -> Self
Set the memory service (optional).
Sourcepub fn plugin_manager(self, manager: Arc<PluginManager>) -> Self
pub fn plugin_manager(self, manager: Arc<PluginManager>) -> Self
Set the plugin manager (optional).
Sourcepub fn run_config(self, config: RunConfig) -> Self
pub fn run_config(self, config: RunConfig) -> Self
Set the run configuration (optional).
Sourcepub fn compaction_config(self, config: EventsCompactionConfig) -> Self
pub fn compaction_config(self, config: EventsCompactionConfig) -> Self
Set the events compaction configuration (optional).
Sourcepub fn context_cache_config(self, config: ContextCacheConfig) -> Self
pub fn context_cache_config(self, config: ContextCacheConfig) -> Self
Set the context cache configuration (optional).
Sourcepub fn cache_capable(self, model: Arc<dyn CacheCapable>) -> Self
pub fn cache_capable(self, model: Arc<dyn CacheCapable>) -> Self
Set the cache-capable model reference (optional).
Sourcepub fn request_context(self, ctx: RequestContext) -> Self
pub fn request_context(self, ctx: RequestContext) -> Self
Set the request context from auth middleware (optional).
Sourcepub fn cancellation_token(self, token: CancellationToken) -> Self
pub fn cancellation_token(self, token: CancellationToken) -> Self
Set a cooperative cancellation token (optional).
Trait Implementations§
Auto Trait Implementations§
impl<A, G, S> Freeze for RunnerConfigBuilder<A, G, S>
impl<A, G, S> !RefUnwindSafe for RunnerConfigBuilder<A, G, S>
impl<A, G, S> Send for RunnerConfigBuilder<A, G, S>
impl<A, G, S> Sync for RunnerConfigBuilder<A, G, S>
impl<A, G, S> Unpin for RunnerConfigBuilder<A, G, S>
impl<A, G, S> UnsafeUnpin for RunnerConfigBuilder<A, G, S>
impl<A, G, S> !UnwindSafe for RunnerConfigBuilder<A, G, S>
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