pub struct DefaultThreadPool { /* private fields */ }
Expand description
DefaultThreadPool is a simple wrapped threadpool::ThreadPool
that implement
monoio::blocking::ThreadPool
. You may use this implementation, or you can use your own thread
pool implementation.
Implementations§
Trait Implementations§
Source§impl Clone for DefaultThreadPool
impl Clone for DefaultThreadPool
Source§fn clone(&self) -> DefaultThreadPool
fn clone(&self) -> DefaultThreadPool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ThreadPool for DefaultThreadPool
impl ThreadPool for DefaultThreadPool
Source§fn schedule_task(&self, task: BlockingTask)
fn schedule_task(&self, task: BlockingTask)
Monoio runtime will call
schedule_task
on spawn_blocking
.
ThreadPool impl must execute it now or later.Auto Trait Implementations§
impl Freeze for DefaultThreadPool
impl RefUnwindSafe for DefaultThreadPool
impl Send for DefaultThreadPool
impl Sync for DefaultThreadPool
impl Unpin for DefaultThreadPool
impl UnwindSafe for DefaultThreadPool
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