pub struct SendAsyncScope<'a> { /* private fields */ }Available on crate feature
alloc only.Expand description
A LIFO stack of Send asynchronous cleanup actions.
Deferred closures and the futures they return must implement Send.
Execution and cancellation behavior match LocalAsyncScope.
Implementations§
Source§impl<'a> SendAsyncScope<'a>
impl<'a> SendAsyncScope<'a>
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates an empty scope with space for at least capacity actions.
Sourcepub fn capacity(&self) -> usize
pub fn capacity(&self) -> usize
Returns the number of actions the scope can hold without reallocating.
Trait Implementations§
Source§impl Debug for SendAsyncScope<'_>
impl Debug for SendAsyncScope<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SendAsyncScope<'a>
impl<'a> !Sync for SendAsyncScope<'a>
impl<'a> !UnwindSafe for SendAsyncScope<'a>
impl<'a> Freeze for SendAsyncScope<'a>
impl<'a> Send for SendAsyncScope<'a>
impl<'a> Unpin for SendAsyncScope<'a>
impl<'a> UnsafeUnpin for SendAsyncScope<'a>
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