Trait pal_async::io_pool::IoBackend

source ·
pub trait IoBackend: Send + Sync {
    // Required methods
    fn name() -> &'static str;
    fn run<Fut: Future>(self: &Arc<Self>, fut: Fut) -> Fut::Output;
}
Expand description

Trait implemented by IO backends.

Required Methods§

source

fn name() -> &'static str

The name of the backend.

source

fn run<Fut: Future>(self: &Arc<Self>, fut: Fut) -> Fut::Output

Run the

Object Safety§

This trait is not object safe.

Implementors§