Struct agnostic_async_executor::AgnosticExecutorBuilder[][src]

pub struct AgnosticExecutorBuilder {}

It lets you build an AgnosticExecutorManager for a concrete executor

Implementations

impl AgnosticExecutorBuilder[src]

pub fn use_tokio_executor(self) -> AgnosticExecutorManager[src]

A manager for a default multi-threaded Tokio executor

pub fn use_tokio_executor_with_runtime(
    self,
    rt: Runtime
) -> AgnosticExecutorManager
[src]

A manager for a provided Tokio executor

pub fn use_async_std_executor(self) -> AgnosticExecutorManager[src]

A manager for an Async Std executor

pub fn use_smol_executor(
    self,
    num_threads: Option<usize>
) -> AgnosticExecutorManager
[src]

A manager for a Smol executor. If num_threads is not provided, it defaults default to the number of logical cores.

pub fn use_futures_executor(self) -> AgnosticExecutorManager[src]

A manager for a default Threadpool executor from the futures crate.

pub fn use_futures_executor_with_runtime(
    self,
    rt: ThreadPool
) -> AgnosticExecutorManager
[src]

A manager for a provided executor from the futures crate.

pub fn use_wasm_bindgen_executor(self) -> AgnosticExecutorManager[src]

A manager for a wasm executor from the wasm_bindgen_futures crate

Auto Trait Implementations

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.