pub struct Completion<T: Send + 'static> { /* private fields */ }Expand description
The awaitable form of a Done declaration: what a generated <fn>_future returns.
Resolves with the arm’s answer, or with Error::Runtime when the arm returned without
ever completing (the call never went out). Dropping it cancels the wait (a late completion
then finds nothing) and runs the cancel hook the generated code attached, when the
declaration named a cancel arm.
Implementations§
Trait Implementations§
Source§impl<T: Send + 'static> Drop for Completion<T>
impl<T: Send + 'static> Drop for Completion<T>
Source§impl<T: Send + 'static> Future for Completion<T>
impl<T: Send + 'static> Future for Completion<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Completion<T>
impl<T> !Sync for Completion<T>
impl<T> !UnwindSafe for Completion<T>
impl<T> Forget for Completion<T>
impl<T> Freeze for Completion<T>
impl<T> Move for Completion<T>
impl<T> Send for Completion<T>
impl<T> Unpin for Completion<T>
impl<T> UnsafeUnpin for Completion<T>
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