pub struct WorkerStop(/* private fields */);Expand description
Stop worker process
Stop future resolves when worker completes processing incoming items and stop arbiter
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 Freeze 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
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 if the future resolves
successfully.