Enum tokio::runtime::RuntimeFlavor
source · [−]#[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
sourceimpl Debug for RuntimeFlavor
impl Debug for RuntimeFlavor
sourceimpl PartialEq<RuntimeFlavor> for RuntimeFlavor
impl PartialEq<RuntimeFlavor> for RuntimeFlavor
sourcefn eq(&self, other: &RuntimeFlavor) -> bool
fn eq(&self, other: &RuntimeFlavor) -> bool
impl Eq for RuntimeFlavor
impl StructuralEq for RuntimeFlavor
impl StructuralPartialEq for RuntimeFlavor
Auto Trait Implementations
impl RefUnwindSafe for RuntimeFlavor
impl Send for RuntimeFlavor
impl Sync for RuntimeFlavor
impl Unpin for RuntimeFlavor
impl UnwindSafe for RuntimeFlavor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more