[][src]Struct lofi::Executor

pub struct Executor { /* fields omitted */ }

Future executor driven by calls to tick().

Implementations

impl Executor[src]

pub fn new() -> Self[src]

Create a new executor.

pub fn insert<F>(&mut self, future: F) where
    F: Future<Output = ()> + Send + Sync + 'static, 
[src]

Insert a future to be run in this executor.

pub fn tick<'a, T>(&mut self, state: &mut T) where
    T: 'a + UniversalTypeId + Sync
[src]

Advance all futures in the executor.

state parameter will be shared across all executing futures.

Auto Trait Implementations

impl !RefUnwindSafe for Executor

impl !Send for Executor

impl !Sync for Executor

impl Unpin for Executor

impl !UnwindSafe for Executor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.