pub struct MkAsyncBox<T> { /* private fields */ }Expand description
Async-safe box type.
Implementations§
Source§impl<T> MkAsyncBox<T>
impl<T> MkAsyncBox<T>
Sourcepub async fn new(alloc: MkAsyncFrameAlloc, value: T) -> Option<Self>
pub async fn new(alloc: MkAsyncFrameAlloc, value: T) -> Option<Self>
Create a new async box.
Sourcepub fn as_mut_ptr(&mut self) -> *mut T
pub fn as_mut_ptr(&mut self) -> *mut T
Get the mutable raw pointer.
Trait Implementations§
Source§impl<T> Deref for MkAsyncBox<T>
impl<T> Deref for MkAsyncBox<T>
Source§impl<T> DerefMut for MkAsyncBox<T>
impl<T> DerefMut for MkAsyncBox<T>
Source§impl<T> Drop for MkAsyncBox<T>
impl<T> Drop for MkAsyncBox<T>
impl<T: Send> Send for MkAsyncBox<T>
impl<T: Sync> Sync for MkAsyncBox<T>
Auto Trait Implementations§
impl<T> Freeze for MkAsyncBox<T>
impl<T> RefUnwindSafe for MkAsyncBox<T>where
T: RefUnwindSafe,
impl<T> Unpin for MkAsyncBox<T>
impl<T> UnwindSafe for MkAsyncBox<T>where
T: RefUnwindSafe,
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