#[non_exhaustive]pub enum Runtime {
Tokio1,
AsyncStd1,
Smol2,
}Expand description
Enumeration for picking a runtime implementation.
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.
Tokio1
Available on crate feature
tokio_1 only.tokio 1.0 runtime.
AsyncStd1
👎Deprecated: Support for
async-std is deprecated and will be removed in a future version. Consider using tokio_1 or smol_2 instead.Available on crate feature
async-std_1 only.async-std 1.0 runtime.
Smol2
Available on crate feature
smol_2 only.smol 2.0 runtime.
Trait Implementations§
impl Copy for Runtime
impl Eq for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnwindSafe for Runtime
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