pub struct WorkerStop(/* private fields */);Expand description
Future returned when stopping a worker.
Resolves to true if the worker’s service shut down within the timeout,
or if the worker was already gone. Resolves to false if the timeout
expired, or if the worker was stopped before its service was created.
Trait Implementations§
Source§impl Debug for WorkerStop
impl Debug for WorkerStop
Source§impl Future for WorkerStop
impl Future for WorkerStop
Auto Trait Implementations§
impl !RefUnwindSafe for WorkerStop
impl !Sync for WorkerStop
impl !UnwindSafe for WorkerStop
impl Forget for WorkerStop
impl Freeze for WorkerStop
impl Move for WorkerStop
impl Send for WorkerStop
impl Unpin for WorkerStop
impl UnsafeUnpin for WorkerStop
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more
Source§impl<F> OnDropFutureExt for Fwhere
F: Future,
impl<F> OnDropFutureExt for Fwhere
F: Future,
Source§fn on_drop<F>(self, on_drop: F) -> OnDropFuture<Self, F> ⓘwhere
F: FnOnce(),
fn on_drop<F>(self, on_drop: F) -> OnDropFuture<Self, F> ⓘwhere
F: FnOnce(),
Wraps this future so that
on_drop is called if the future is dropped
before it completes. The callback is cancelled once the future
completes, whatever its output.