[][src]Struct bach::executor::Executor

pub struct Executor<Environment> { /* fields omitted */ }

Implementations

impl<E: Environment> Executor<E>[src]

pub fn new(environment: E, queue_size: Option<usize>) -> Self[src]

pub fn spawn<F, Output>(&mut self, future: F) -> JoinHandle<Output>

Notable traits for JoinHandle<O>

impl<O> Future for JoinHandle<O> type Output = O;
where
    F: Future<Output = Output> + Send + 'static,
    Output: Send + 'static, 
[src]

pub fn tick(&mut self) -> Poll<()>[src]

pub fn environment(&mut self) -> &mut E[src]

Auto Trait Implementations

impl<Environment> !RefUnwindSafe for Executor<Environment>

impl<Environment> Send for Executor<Environment> where
    Environment: Send

impl<Environment> Sync for Executor<Environment> where
    Environment: Sync

impl<Environment> Unpin for Executor<Environment> where
    Environment: Unpin

impl<Environment> !UnwindSafe for Executor<Environment>

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.