pub struct AsyncScopeNoAlloc<const N: usize> { /* private fields */ }
Available on crate feature
no_alloc
only.Expand description
A fixed-capacity async scope that does not use dynamic allocation.
Implementations§
Source§impl<const N: usize> AsyncScopeNoAlloc<N>
impl<const N: usize> AsyncScopeNoAlloc<N>
Sourcepub fn defer(&mut self, f: DeferredFn)
pub fn defer(&mut self, f: DeferredFn)
Registers a 'static
function pointer to be called later.
Panics if capacity is exceeded.
Auto Trait Implementations§
impl<const N: usize> Freeze for AsyncScopeNoAlloc<N>
impl<const N: usize> RefUnwindSafe for AsyncScopeNoAlloc<N>
impl<const N: usize> Send for AsyncScopeNoAlloc<N>
impl<const N: usize> Sync for AsyncScopeNoAlloc<N>
impl<const N: usize> Unpin for AsyncScopeNoAlloc<N>
impl<const N: usize> UnwindSafe for AsyncScopeNoAlloc<N>
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