Struct agnostic_async_executor::AgnosticExecutorBuilder [−][src]
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]
self,
rt: Runtime
) -> AgnosticExecutorManager
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]
self,
num_threads: Option<usize>
) -> AgnosticExecutorManager
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]
self,
rt: ThreadPool
) -> AgnosticExecutorManager
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
impl RefUnwindSafe for AgnosticExecutorBuilder
[src]
impl Send for AgnosticExecutorBuilder
[src]
impl Sync for AgnosticExecutorBuilder
[src]
impl Unpin for AgnosticExecutorBuilder
[src]
impl UnwindSafe for AgnosticExecutorBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,