pub enum AsyncHandling {
Error,
Await,
BlockOn,
}Expand description
How to handle async methods.
Variants§
Error
Return an error if method is async
Await
Await the method (caller must be async)
BlockOn
Use tokio::runtime::Runtime::block_on
Trait Implementations§
Source§impl Clone for AsyncHandling
impl Clone for AsyncHandling
Source§fn clone(&self) -> AsyncHandling
fn clone(&self) -> AsyncHandling
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 AsyncHandling
impl Debug for AsyncHandling
impl Copy for AsyncHandling
Auto Trait Implementations§
impl Freeze for AsyncHandling
impl RefUnwindSafe for AsyncHandling
impl Send for AsyncHandling
impl Sync for AsyncHandling
impl Unpin for AsyncHandling
impl UnsafeUnpin for AsyncHandling
impl UnwindSafe for AsyncHandling
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