[][src]Trait futures_prio::PriorityExt

pub trait PriorityExt: Future + Sized {
    fn priority(self, prio: usize) -> Priority<Self>;
}

Extension trait to set priority on Futures.

Required methods

Important traits for Priority<T>
fn priority(self, prio: usize) -> Priority<Self>

Set the priority of a Future. A priority of 0 is equivalent to not calling this method, and higher priorities will cause a Future to be polled less often.

Loading content...

Implementors

impl<T: Future> PriorityExt for T[src]

Loading content...