pub struct AcknowledgeService<S, A> { /* private fields */ }Expand description
Service that wraps another service and acknowledges task completion
See module level documentation for more details.
Trait Implementations§
Source§impl<S: Clone, A: Clone> Clone for AcknowledgeService<S, A>
impl<S: Clone, A: Clone> Clone for AcknowledgeService<S, A>
Source§fn clone(&self) -> AcknowledgeService<S, A>
fn clone(&self) -> AcknowledgeService<S, A>
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, A, Args, Ctx, Res, IdType> Service<Task<Args, Ctx, IdType>> for AcknowledgeService<S, A>where
S: Service<Task<Args, Ctx, IdType>, Response = Res>,
A: Acknowledge<Res, Ctx, IdType> + Clone + Send + 'static,
S::Error: Into<BoxDynError>,
A::Error: Error + Send + Sync + 'static,
S::Future: Send + 'static,
A::Future: Send + 'static,
Ctx: Clone + Sync + 'static + Send,
Res: Send,
IdType: Send + Clone + 'static,
impl<S, A, Args, Ctx, Res, IdType> Service<Task<Args, Ctx, IdType>> for AcknowledgeService<S, A>where
S: Service<Task<Args, Ctx, IdType>, Response = Res>,
A: Acknowledge<Res, Ctx, IdType> + Clone + Send + 'static,
S::Error: Into<BoxDynError>,
A::Error: Error + Send + Sync + 'static,
S::Future: Send + 'static,
A::Future: Send + 'static,
Ctx: Clone + Sync + 'static + Send,
Res: Send,
IdType: Send + Clone + 'static,
Auto Trait Implementations§
impl<S, A> Freeze for AcknowledgeService<S, A>
impl<S, A> RefUnwindSafe for AcknowledgeService<S, A>where
S: RefUnwindSafe,
A: RefUnwindSafe,
impl<S, A> Send for AcknowledgeService<S, A>
impl<S, A> Sync for AcknowledgeService<S, A>
impl<S, A> Unpin for AcknowledgeService<S, A>
impl<S, A> UnwindSafe for AcknowledgeService<S, A>where
S: UnwindSafe,
A: 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