pub enum AsyncConfig {
None,
All,
AllExceptImports(HashSet<String>),
OnlyImports(HashSet<String>),
}
Variants§
None
No functions are async
.
All
All generated functions should be async
.
AllExceptImports(HashSet<String>)
These imported functions should not be async, but everything else is.
OnlyImports(HashSet<String>)
These functions are the only imports that are async, all other imports are sync.
Note that all exports are still async in this situation.
Implementations§
source§impl AsyncConfig
impl AsyncConfig
pub fn is_import_async(&self, f: &str) -> bool
pub fn maybe_async(&self) -> bool
Trait Implementations§
source§impl Clone for AsyncConfig
impl Clone for AsyncConfig
source§fn clone(&self) -> AsyncConfig
fn clone(&self) -> AsyncConfig
Returns a copy 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 AsyncConfig
impl Debug for AsyncConfig
source§impl Default for AsyncConfig
impl Default for AsyncConfig
source§fn default() -> AsyncConfig
fn default() -> AsyncConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AsyncConfig
impl RefUnwindSafe for AsyncConfig
impl Send for AsyncConfig
impl Sync for AsyncConfig
impl Unpin for AsyncConfig
impl UnwindSafe for AsyncConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)