pub trait IntoWorkerServiceExt<Args, Ctx, Svc, Backend, M>: Sized{
// Required method
fn build_with(
self,
builder: WorkerBuilder<Args, Ctx, Backend, M>,
) -> Worker<Args, Ctx, Backend, Svc, M>;
}Expand description
Extension trait for building a worker from a builder
Required Methods§
Sourcefn build_with(
self,
builder: WorkerBuilder<Args, Ctx, Backend, M>,
) -> Worker<Args, Ctx, Backend, Svc, M>
fn build_with( self, builder: WorkerBuilder<Args, Ctx, Backend, M>, ) -> Worker<Args, Ctx, Backend, Svc, M>
Consumes the builder and returns a worker
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<T, Args, Ctx, Svc, B, M> IntoWorkerServiceExt<Args, Ctx, Svc, B, M> for Twhere
T: IntoWorkerService<B, Svc, Args, Ctx>,
B: Backend<Args = Args, Context = Ctx>,
Svc: Service<Task<Args, Ctx, B::IdType>>,
Implementation of the IntoWorkerServiceExt trait for any type
Rust doest offer specialization yet, the IntoWorkerServiceExt and IntoWorkerService
traits are used to allow the build method to be more flexible.