Drive

Trait Drive 

Source
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§

Source

fn is_empty(&self) -> bool

Source

fn push(&mut self, future: F)

Source

fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Option<F::Output>>

Implementations on Foreign Types§

Source§

impl<F: Future> Drive<F> for FuturesOrdered<F>

Source§

fn is_empty(&self) -> bool

Source§

fn push(&mut self, future: F)

Source§

fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Option<F::Output>>

Source§

impl<F: Future> Drive<F> for FuturesUnordered<F>

Source§

fn is_empty(&self) -> bool

Source§

fn push(&mut self, future: F)

Source§

fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Option<F::Output>>

Implementors§