pub enum AsyncPattern {
None,
Pyo3FutureIntoPy,
NapiNativeAsync,
WasmNativeAsync,
TokioBlockOn,
}Expand description
Async support pattern for the backend.
Variants§
None
No async support
Pyo3FutureIntoPy
PyO3: pyo3_async_runtimes::tokio::future_into_py
NapiNativeAsync
NAPI-RS: native async fn → auto-Promise
WasmNativeAsync
wasm-bindgen: native async fn → auto-Promise
TokioBlockOn
Block on Tokio runtime (Ruby, PHP)
Trait Implementations§
Source§impl Clone for AsyncPattern
impl Clone for AsyncPattern
Source§fn clone(&self) -> AsyncPattern
fn clone(&self) -> AsyncPattern
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 AsyncPattern
impl Debug for AsyncPattern
Source§impl PartialEq for AsyncPattern
impl PartialEq for AsyncPattern
impl Copy for AsyncPattern
impl Eq for AsyncPattern
impl StructuralPartialEq for AsyncPattern
Auto Trait Implementations§
impl Freeze for AsyncPattern
impl RefUnwindSafe for AsyncPattern
impl Send for AsyncPattern
impl Sync for AsyncPattern
impl Unpin for AsyncPattern
impl UnsafeUnpin for AsyncPattern
impl UnwindSafe for AsyncPattern
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