pub(crate) trait Drive<F: Future> {
// Required methods
fn is_empty(&self) -> bool;
fn push(&mut self, future: F);
fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Option<F::Output>>;
}Required Methods§
fn is_empty(&self) -> bool
fn push(&mut self, future: F)
fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Option<F::Output>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".