pub(super) enum Scheduler {
CurrentThread(CurrentThread),
MultiThread(MultiThread),
}
Expand description
The runtime scheduler is either a multi-thread or a current-thread executor.
Variants§
CurrentThread(CurrentThread)
Execute all tasks on the current-thread.
MultiThread(MultiThread)
Execute tasks across multiple threads.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Scheduler
impl Send for Scheduler
impl Sync for Scheduler
impl Unpin for Scheduler
impl !UnwindSafe for Scheduler
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