pub struct ParallelizeService<S, Executor> { /* private fields */ }Expand description
Service for emitting events
Trait Implementations§
Source§impl<S: Clone, Executor: Clone> Clone for ParallelizeService<S, Executor>
impl<S: Clone, Executor: Clone> Clone for ParallelizeService<S, Executor>
Source§fn clone(&self) -> ParallelizeService<S, Executor>
fn clone(&self) -> ParallelizeService<S, Executor>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S, Args, Ctx, IdType, Fut, T, Executor, ExecErr> Service<Task<Args, Ctx, IdType>> for ParallelizeService<S, Executor>where
S: Service<Task<Args, Ctx, IdType>, Future = Fut>,
Executor: Fn(Fut) -> T + Send + 'static,
Fut: Future<Output = Result<S::Response, S::Error>> + Send + 'static,
T: Future<Output = Result<Result<S::Response, S::Error>, ExecErr>> + Send + 'static,
S::Error: Into<BoxDynError> + Send + 'static,
ExecErr: Into<BoxDynError>,
S::Response: Send + 'static,
impl<S, Args, Ctx, IdType, Fut, T, Executor, ExecErr> Service<Task<Args, Ctx, IdType>> for ParallelizeService<S, Executor>where
S: Service<Task<Args, Ctx, IdType>, Future = Fut>,
Executor: Fn(Fut) -> T + Send + 'static,
Fut: Future<Output = Result<S::Response, S::Error>> + Send + 'static,
T: Future<Output = Result<Result<S::Response, S::Error>, ExecErr>> + Send + 'static,
S::Error: Into<BoxDynError> + Send + 'static,
ExecErr: Into<BoxDynError>,
S::Response: Send + 'static,
Source§type Response = <S as Service<Task<Args, Ctx, IdType>>>::Response
type Response = <S as Service<Task<Args, Ctx, IdType>>>::Response
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<ParallelizeService<S, Executor> as Service<Task<Args, Ctx, IdType>>>::Response, <ParallelizeService<S, Executor> as Service<Task<Args, Ctx, IdType>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<ParallelizeService<S, Executor> as Service<Task<Args, Ctx, IdType>>>::Response, <ParallelizeService<S, Executor> as Service<Task<Args, Ctx, IdType>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<S, Executor> Freeze for ParallelizeService<S, Executor>
impl<S, Executor> RefUnwindSafe for ParallelizeService<S, Executor>where
S: RefUnwindSafe,
Executor: RefUnwindSafe,
impl<S, Executor> Send for ParallelizeService<S, Executor>
impl<S, Executor> Sync for ParallelizeService<S, Executor>
impl<S, Executor> Unpin for ParallelizeService<S, Executor>
impl<S, Executor> UnwindSafe for ParallelizeService<S, Executor>where
S: UnwindSafe,
Executor: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<Args, Ctx, S, B> IntoWorkerService<B, S, Args, Ctx> for S
impl<Args, Ctx, S, B> IntoWorkerService<B, S, Args, Ctx> for S
Source§fn into_service(self, _: &B) -> S
fn into_service(self, _: &B) -> S
Build the service from the backend
Source§impl<T, Args, Ctx, Svc, B, M> IntoWorkerServiceExt<Args, Ctx, Svc, B, M> for T
impl<T, Args, Ctx, Svc, B, M> IntoWorkerServiceExt<Args, Ctx, Svc, B, M> for T
Source§fn build_with(
self,
builder: WorkerBuilder<Args, Ctx, B, M>,
) -> Worker<Args, Ctx, B, Svc, M>
fn build_with( self, builder: WorkerBuilder<Args, Ctx, B, M>, ) -> Worker<Args, Ctx, B, Svc, M>
Consumes the builder and returns a worker