pub enum AsyncRuntime {
Tokio,
AsyncStd,
Smol,
Custom {
attribute: String,
import: String,
},
}
Expand description
Supported async runtimes for Python async code generation
Variants§
Tokio
Tokio runtime (default)
AsyncStd
async-std runtime
Smol
smol runtime
Custom
Custom runtime with specified attribute and import
Implementations§
Source§impl AsyncRuntime
impl AsyncRuntime
Trait Implementations§
Source§impl Clone for AsyncRuntime
impl Clone for AsyncRuntime
Source§fn clone(&self) -> AsyncRuntime
fn clone(&self) -> AsyncRuntime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AsyncRuntime
impl Debug for AsyncRuntime
Source§impl Default for AsyncRuntime
impl Default for AsyncRuntime
Source§impl PartialEq for AsyncRuntime
impl PartialEq for AsyncRuntime
impl StructuralPartialEq for AsyncRuntime
Auto Trait Implementations§
impl Freeze for AsyncRuntime
impl RefUnwindSafe for AsyncRuntime
impl Send for AsyncRuntime
impl Sync for AsyncRuntime
impl Unpin for AsyncRuntime
impl UnwindSafe for AsyncRuntime
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ErrorContext for Twhere
T: Debug,
impl<T> ErrorContext for Twhere
T: Debug,
Source§fn with_context(&self, operation: &str) -> String
fn with_context(&self, operation: &str) -> String
Generate a standardized error message with context.