pub struct TrackerService<S> { /* private fields */ }Expand description
Service that tracks a tasks future allowing graceful shutdowns
Trait Implementations§
Source§impl<S: Clone> Clone for TrackerService<S>
impl<S: Clone> Clone for TrackerService<S>
Source§fn clone(&self) -> TrackerService<S>
fn clone(&self) -> TrackerService<S>
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: Debug> Debug for TrackerService<S>
impl<S: Debug> Debug for TrackerService<S>
Source§impl<S, Args, Ctx, IdType> Service<Task<Args, Ctx, IdType>> for TrackerService<S>
impl<S, Args, Ctx, IdType> Service<Task<Args, Ctx, IdType>> for TrackerService<S>
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 = Tracked<AttemptOnPollFuture<<S as Service<Task<Args, Ctx, IdType>>>::Future>>
type Future = Tracked<AttemptOnPollFuture<<S as Service<Task<Args, Ctx, IdType>>>::Future>>
The future response value.
Auto Trait Implementations§
impl<S> Freeze for TrackerService<S>where
S: Freeze,
impl<S> !RefUnwindSafe for TrackerService<S>
impl<S> Send for TrackerService<S>where
S: Send,
impl<S> Sync for TrackerService<S>where
S: Sync,
impl<S> Unpin for TrackerService<S>where
S: Unpin,
impl<S> !UnwindSafe for TrackerService<S>
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