pub struct ServiceDescriptorFactoryBuilder<TInterface: ?Sized> { /* private fields */ }Expand description
Service descriptor builder with custom factory
Implementations§
Source§impl<TInterface: ?Sized + 'static> ServiceDescriptorFactoryBuilder<TInterface>
impl<TInterface: ?Sized + 'static> ServiceDescriptorFactoryBuilder<TInterface>
Sourcepub fn with_lifetime(self, lifetime: ServiceScope) -> Self
pub fn with_lifetime(self, lifetime: ServiceScope) -> Self
Set the service lifetime
Sourcepub fn with_factory<F, T>(self, factory: F) -> Self
pub fn with_factory<F, T>(self, factory: F) -> Self
Set the factory function
Sourcepub fn build(self) -> Result<ServiceDescriptor, CoreError>
pub fn build(self) -> Result<ServiceDescriptor, CoreError>
Build the service descriptor
Trait Implementations§
Auto Trait Implementations§
impl<TInterface> Freeze for ServiceDescriptorFactoryBuilder<TInterface>where
TInterface: ?Sized,
impl<TInterface> !RefUnwindSafe for ServiceDescriptorFactoryBuilder<TInterface>
impl<TInterface> !Send for ServiceDescriptorFactoryBuilder<TInterface>
impl<TInterface> !Sync for ServiceDescriptorFactoryBuilder<TInterface>
impl<TInterface> Unpin for ServiceDescriptorFactoryBuilder<TInterface>where
TInterface: ?Sized,
impl<TInterface> !UnwindSafe for ServiceDescriptorFactoryBuilder<TInterface>
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