IntoWorkerServiceExt

Trait IntoWorkerServiceExt 

Source
pub trait IntoWorkerServiceExt<Args, Ctx, Svc, Backend, M>: Sized
where Backend: Backend<Args = Args, Context = Ctx>, Svc: Service<Task<Args, Ctx, Backend::IdType>>,
{ // 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§

Source

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§

Source§

impl<T, Args, Ctx, Svc, B, M> IntoWorkerServiceExt<Args, Ctx, Svc, B, M> for T
where 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.