pub struct ThreadPoolDispatcher { /* private fields */ }Expand description
Multi-thread dedicated runtime sized by worker_threads.
Implementations§
Trait Implementations§
Source§impl Dispatcher for ThreadPoolDispatcher
impl Dispatcher for ThreadPoolDispatcher
fn spawn_task(&self, task: BoxFuture<'static, ()>) -> DispatcherHandle
fn throughput(&self) -> u32
Source§fn throughput_deadline(&self) -> Option<Duration>
fn throughput_deadline(&self) -> Option<Duration>
None is unbounded.Auto Trait Implementations§
impl Freeze for ThreadPoolDispatcher
impl RefUnwindSafe for ThreadPoolDispatcher
impl Send for ThreadPoolDispatcher
impl Sync for ThreadPoolDispatcher
impl Unpin for ThreadPoolDispatcher
impl UnsafeUnpin for ThreadPoolDispatcher
impl UnwindSafe for ThreadPoolDispatcher
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