[][src]Trait kayrx::karx::futures::Runtime

pub trait Runtime {
    type Spawner: Spawner;
    fn spawner(&self) -> Self::Spawner;
fn exec<Fut>(&mut self, fut: Fut) -> Fut::Output
    where
        Fut: Future
; }

The Runtime for driving the application.

Associated Types

type Spawner: Spawner

The value for spawning cases.

Loading content...

Required methods

fn spawner(&self) -> Self::Spawner

Create the instance of Spawner.

fn exec<Fut>(&mut self, fut: Fut) -> Fut::Output where
    Fut: Future

Run a future and wait for its result.

Loading content...

Implementations on Foreign Types

impl<'_, T: ?Sized> Runtime for &'_ mut T where
    T: Runtime
[src]

type Spawner = T::Spawner

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

type Spawner = T::Spawner

Loading content...

Implementors

Loading content...