Enum pyo3_asyncio::tokio::re_exports::runtime::RuntimeFlavor
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§
§impl Debug for RuntimeFlavor
impl Debug for RuntimeFlavor
§impl PartialEq<RuntimeFlavor> for RuntimeFlavor
impl PartialEq<RuntimeFlavor> for RuntimeFlavor
§fn eq(&self, other: &RuntimeFlavor) -> bool
fn eq(&self, other: &RuntimeFlavor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.