Enum RuntimeFlavor
#[non_exhaustive]
pub enum RuntimeFlavor
The flavor of a Runtime.
This is the return type for Handle::runtime_flavor.
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
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for RuntimeFlavor
impl PartialEq for RuntimeFlavor
fn eq(&self, other: &RuntimeFlavor) -> bool
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 UnsafeUnpin for RuntimeFlavor
impl UnwindSafe for RuntimeFlavor
Blanket Implementations
impl<T> Any for RuntimeFlavor
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RuntimeFlavor
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RuntimeFlavor
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for RuntimeFlavor
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for RuntimeFlavor
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RuntimeFlavor
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for RuntimeFlavor
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>