pub struct AsyncFilterSet { /* private fields */ }Expand description
Structure used to parse the command line argument --async consistently
across guest generators.
Implementations§
Source§impl AsyncFilterSet
impl AsyncFilterSet
Sourcepub fn all(async_: bool) -> AsyncFilterSet
pub fn all(async_: bool) -> AsyncFilterSet
Returns a set where all functions should be async or not depending on
async_ provided.
Sourcepub fn is_async(
&mut self,
resolve: &Resolve,
interface: Option<&WorldKey>,
func: &Function,
is_import: bool,
) -> bool
pub fn is_async( &mut self, resolve: &Resolve, interface: Option<&WorldKey>, func: &Function, is_import: bool, ) -> bool
Returns whether the func provided is to be bound async or not.
Sourcepub fn debug_opts(&self) -> impl Iterator<Item = String> + '_
pub fn debug_opts(&self) -> impl Iterator<Item = String> + '_
Intended to be used in the header comment of generated code to help indicate what options were specified.
Sourcepub fn ensure_all_used(&self) -> Result<()>
pub fn ensure_all_used(&self) -> Result<()>
Tests whether all --async options were used throughout bindings
generation, returning an error if any were unused.
Sourcepub fn any_enabled(&self) -> bool
pub fn any_enabled(&self) -> bool
Returns whether any option explicitly requests that async is enabled.
Trait Implementations§
Source§impl Clone for AsyncFilterSet
impl Clone for AsyncFilterSet
Source§fn clone(&self) -> AsyncFilterSet
fn clone(&self) -> AsyncFilterSet
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 AsyncFilterSet
impl Debug for AsyncFilterSet
Source§impl Default for AsyncFilterSet
impl Default for AsyncFilterSet
Source§fn default() -> AsyncFilterSet
fn default() -> AsyncFilterSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AsyncFilterSet
impl RefUnwindSafe for AsyncFilterSet
impl Send for AsyncFilterSet
impl Sync for AsyncFilterSet
impl Unpin for AsyncFilterSet
impl UnwindSafe for AsyncFilterSet
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