pub struct MkAsyncFrameAlloc { /* private fields */ }Expand description
Async-aware frame allocator.
Tracks allocations per-task rather than per-thread,
making it safe to use across .await points.
Implementations§
Source§impl MkAsyncFrameAlloc
impl MkAsyncFrameAlloc
Sourcepub fn new(config: MkAsyncFrameConfig) -> Self
pub fn new(config: MkAsyncFrameConfig) -> Self
Create a new async frame allocator.
Sourcepub async fn begin_frame(&self) -> MkAsyncFrameGuard
pub async fn begin_frame(&self) -> MkAsyncFrameGuard
Begin a new async frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MkAsyncFrameAlloc
impl RefUnwindSafe for MkAsyncFrameAlloc
impl Send for MkAsyncFrameAlloc
impl Sync for MkAsyncFrameAlloc
impl Unpin for MkAsyncFrameAlloc
impl UnwindSafe for MkAsyncFrameAlloc
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