pub struct HostCompositionBuilder { /* private fields */ }Expand description
Builder for HostComposition.
Implementations§
Source§impl HostCompositionBuilder
impl HostCompositionBuilder
Sourcepub fn capability_registry(self, registry: CapabilityRegistry) -> Self
pub fn capability_registry(self, registry: CapabilityRegistry) -> Self
Replace the capability registry.
Sourcepub fn capability(self, capability: impl Capability + 'static) -> Self
pub fn capability(self, capability: impl Capability + 'static) -> Self
Register a capability on the composition.
Sourcepub fn driver_registry(self, registry: DriverRegistry) -> Self
pub fn driver_registry(self, registry: DriverRegistry) -> Self
Replace the driver registry.
Sourcepub fn egress_service(self, service: Arc<dyn EgressService>) -> Self
pub fn egress_service(self, service: Arc<dyn EgressService>) -> Self
Set the system-wide outbound egress service.
Sourcepub fn utility_llm_service(self, service: Arc<dyn UtilityLlmService>) -> Self
pub fn utility_llm_service(self, service: Arc<dyn UtilityLlmService>) -> Self
Set the system-wide utility LLM service.
Sourcepub fn session_file_system_factory(
self,
factory: Arc<dyn SessionFileSystemFactory>,
) -> Self
pub fn session_file_system_factory( self, factory: Arc<dyn SessionFileSystemFactory>, ) -> Self
Set the host-wide session filesystem factory.
Sourcepub fn extension<T: Any + Send + Sync>(self, value: Arc<T>) -> Self
pub fn extension<T: Any + Send + Sync>(self, value: Arc<T>) -> Self
Insert a type-keyed service supplied by a crate layered above core.
Sourcepub fn build(self) -> HostComposition
pub fn build(self) -> HostComposition
Build the composition.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HostCompositionBuilder
impl !RefUnwindSafe for HostCompositionBuilder
impl !UnwindSafe for HostCompositionBuilder
impl Send for HostCompositionBuilder
impl Sync for HostCompositionBuilder
impl Unpin for HostCompositionBuilder
impl UnsafeUnpin for HostCompositionBuilder
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