pub trait StepWorkerFactory<Ctx, Compact, Input, Output, Index> {
type Source;
type Service;
type Codec;
// Required method
fn build_stepped(
self,
builder: StepBuilder<Ctx, Compact, Input, Output, Self::Codec, Index>,
) -> Worker<Ready<Self::Service, Self::Source>>;
}
Expand description
Helper trait for building new Workers from WorkerBuilder
Required Associated Types§
Required Methods§
Sourcefn build_stepped(
self,
builder: StepBuilder<Ctx, Compact, Input, Output, Self::Codec, Index>,
) -> Worker<Ready<Self::Service, Self::Source>>
fn build_stepped( self, builder: StepBuilder<Ctx, Compact, Input, Output, Self::Codec, Index>, ) -> Worker<Ready<Self::Service, Self::Source>>
Builds a StepWorkerFactory
using a tower
service
that can be used to generate a new Worker
using the build_stepped
method
§Arguments
service
- A tower service