pub struct Memory<T: Default> { /* private fields */ }
Implementations§
source§impl<T> Memory<T>
impl<T> Memory<T>
pub fn new(value: T) -> Pin<Box<Self>>
pub fn new_read_ptr(self: &mut Pin<Box<Self>>) -> AtomicPtr<T>
pub fn write(self: &mut Pin<Box<Self>>, value: &T)
pub fn write_in_place( self: &mut Pin<Box<Self>>, closure: &mut dyn FnMut(&mut T) )
pub fn swap(self: &mut Pin<Box<Self>>, read_ptr: &AtomicPtr<T>)
Auto Trait Implementations§
impl<T> RefUnwindSafe for Memory<T>where
T: RefUnwindSafe,
impl<T> Send for Memory<T>where
T: Send,
impl<T> Sync for Memory<T>where
T: Sync,
impl<T> !Unpin for Memory<T>
impl<T> UnwindSafe for Memory<T>where
T: UnwindSafe,
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