pub struct StdContext { /* private fields */ }Expand description
The default context using crossbeam and the standard library.
This context facilitates creating new tasks and effectively dividing them among workers via a wait queue.
Creating new threads uses the Rust standard library std::thread::spawn with its default settings.
Implementations§
Trait Implementations§
source§impl TaskContext for Context
impl TaskContext for Context
source§fn set_workers(&self, max: usize)
fn set_workers(&self, max: usize)
Sets the amount of concurrent workers. The amount of workers can only ever increase.
If you set the limit, then set it again to a lower limit, the limit will not change.
Auto Trait Implementations§
impl !Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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