pub struct GameStateCell<T: Clone>(/* private fields */);Expand description
An Arc<Mutex> that you can save()/load() a T to/from. These will be handed to the user as part of a GgrsRequest.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for GameStateCell<T>
impl<T: Clone> Clone for GameStateCell<T>
Source§impl<T: Clone> Debug for GameStateCell<T>
impl<T: Clone> Debug for GameStateCell<T>
Auto Trait Implementations§
impl<T> Freeze for GameStateCell<T>
impl<T> !RefUnwindSafe for GameStateCell<T>
impl<T> Send for GameStateCell<T>where
T: Send,
impl<T> Sync for GameStateCell<T>where
T: Send,
impl<T> Unpin for GameStateCell<T>
impl<T> !UnwindSafe for GameStateCell<T>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)