pub struct AgnosticExecutorBuilder {}
Expand description
It lets you build an AgnosticExecutorManager for a concrete executor
Implementations§
Source§impl AgnosticExecutorBuilder
impl AgnosticExecutorBuilder
Sourcepub fn use_tokio_executor(self) -> AgnosticExecutorManager
pub fn use_tokio_executor(self) -> AgnosticExecutorManager
A manager for a default multi-threaded Tokio executor
Sourcepub fn use_tokio_executor_with_runtime(
self,
rt: Runtime,
) -> AgnosticExecutorManager
pub fn use_tokio_executor_with_runtime( self, rt: Runtime, ) -> AgnosticExecutorManager
A manager for a provided Tokio executor
Sourcepub fn use_async_std_executor(self) -> AgnosticExecutorManager
pub fn use_async_std_executor(self) -> AgnosticExecutorManager
A manager for an Async Std executor
Sourcepub fn use_smol_executor(
self,
num_threads: Option<usize>,
) -> AgnosticExecutorManager
pub fn use_smol_executor( 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.
Sourcepub fn use_futures_executor(self) -> AgnosticExecutorManager
pub fn use_futures_executor(self) -> AgnosticExecutorManager
A manager for a default Threadpool executor from the futures crate.
Sourcepub fn use_futures_executor_with_runtime(
self,
rt: ThreadPool,
) -> AgnosticExecutorManager
pub fn use_futures_executor_with_runtime( self, rt: ThreadPool, ) -> AgnosticExecutorManager
A manager for a provided executor from the futures crate.
Sourcepub fn use_wasm_bindgen_executor(self) -> AgnosticExecutorManager
pub fn use_wasm_bindgen_executor(self) -> AgnosticExecutorManager
A manager for a wasm executor from the wasm_bindgen_futures crate
Auto Trait Implementations§
impl Freeze for AgnosticExecutorBuilder
impl RefUnwindSafe for AgnosticExecutorBuilder
impl Send for AgnosticExecutorBuilder
impl Sync for AgnosticExecutorBuilder
impl Unpin for AgnosticExecutorBuilder
impl UnwindSafe for AgnosticExecutorBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more