#[non_exhaustive]pub enum RuntimeFlavor {
CurrentThread,
MultiThread,
}
Expand description
The flavor of a Runtime
.
This is the return type for Handle::runtime_flavor
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CurrentThread
The flavor that executes all tasks on the current thread.
MultiThread
The flavor that executes tasks across multiple threads.
Trait Implementations§
Source§impl Debug for RuntimeFlavor
impl Debug for RuntimeFlavor
Source§impl PartialEq for RuntimeFlavor
impl PartialEq for RuntimeFlavor
impl Eq for RuntimeFlavor
impl StructuralPartialEq for RuntimeFlavor
Auto Trait Implementations§
impl Freeze for RuntimeFlavor
impl RefUnwindSafe for RuntimeFlavor
impl Send for RuntimeFlavor
impl Sync for RuntimeFlavor
impl Unpin for RuntimeFlavor
impl UnwindSafe for RuntimeFlavor
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