pub struct SharedData<T: AsRef<str>>(/* private fields */);
Expand description
A VM ID local atomic field. Any WASM VM in the same VM ID can read or write to any key in it’s VM ID. SharedData cannot cross VM IDs.
Implementations§
Sourcepub fn get(&self) -> Option<Vec<u8>>
pub fn get(&self) -> Option<Vec<u8>>
Gets the value of the SharedData. Doesn’t return the check-and-set (CAS) number.
Trait Implementations§
Source§fn clone(&self) -> SharedData<T>
fn clone(&self) -> SharedData<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
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