pub struct Awaitable<Input, Output>(_);
Expand description
Awaitable guarantees that there is no spurious wakeup
Implementations
Reset Awaitable
to its initial state.
After this call, install_waker
, take_input
and done
can be called.
Return true if the task is already done.
**
install_waker
must not be called after take_output
is called.
**
**take_input
must not be called after take_output
is called.
done
must be only called once on one instance of Awaitable
.
done
must not be called after take_output
is called.
Return Some(output)
if the awaitable is done.
Return true if current state is Consumed
.