pub struct WorkerSubsystemFactory { /* private fields */ }Expand description
Factory for creating WorkerPoolSubsystem instances
Implementations§
Source§impl WorkerSubsystemFactory
impl WorkerSubsystemFactory
Sourcepub fn with_configurator<F>(configurator: F) -> Self
pub fn with_configurator<F>(configurator: F) -> Self
Create a factory with a custom configurator
Sourcepub fn with_config(config: WorkerConfig) -> Self
pub fn with_config(config: WorkerConfig) -> Self
Create a new factory with custom configuration (legacy method)
Trait Implementations§
Source§impl Default for WorkerSubsystemFactory
impl Default for WorkerSubsystemFactory
Source§impl SubsystemFactory<StandardCommandTransaction> for WorkerSubsystemFactory
impl SubsystemFactory<StandardCommandTransaction> for WorkerSubsystemFactory
fn provide_interceptors( &self, builder: StandardInterceptorBuilder<StandardCommandTransaction>, _ioc: &IocContainer, ) -> StandardInterceptorBuilder<StandardCommandTransaction>
fn create(self: Box<Self>, ioc: &IocContainer) -> Result<Box<dyn Subsystem>>
Auto Trait Implementations§
impl !RefUnwindSafe for WorkerSubsystemFactory
impl !Sync for WorkerSubsystemFactory
impl !UnwindSafe for WorkerSubsystemFactory
impl Freeze for WorkerSubsystemFactory
impl Send for WorkerSubsystemFactory
impl Unpin for WorkerSubsystemFactory
impl UnsafeUnpin for WorkerSubsystemFactory
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more