Struct frame_allocator::DeferredAllocAction
source · pub struct DeferredAllocAction<'list> { /* private fields */ }
Expand description
A series of pending actions related to frame allocator bookkeeping, which may result in heap allocation.
The actions are triggered upon dropping this struct.
This struct can be returned from the allocate_frames()
family of functions
in order to allow the caller to precisely control when those actions
that may result in heap allocation should occur.
Such actions include adding chunks to lists of free frames or frames in use.
The vast majority of use cases don’t care about such precise control,
so you can simply drop this struct at any time or ignore it
with a let _ = ...
binding to instantly drop it.
Trait Implementations§
Auto Trait Implementations§
impl<'list> !RefUnwindSafe for DeferredAllocAction<'list>
impl<'list> Send for DeferredAllocAction<'list>
impl<'list> Sync for DeferredAllocAction<'list>
impl<'list> Unpin for DeferredAllocAction<'list>
impl<'list> !UnwindSafe for DeferredAllocAction<'list>
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