pub struct AppStateWrapper<S: AppState>(/* private fields */);Expand description
Holds application state.
§Cloning
It can be useful to clone AppStateWrapper’s in order to pass state into event handler
closures.
All clones will point to the same inner state.
Cloning an AppStateWrapper is a very cheap operation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for AppStateWrapper<S>
impl<S> RefUnwindSafe for AppStateWrapper<S>
impl<S> Send for AppStateWrapper<S>
impl<S> Sync for AppStateWrapper<S>
impl<S> Unpin for AppStateWrapper<S>
impl<S> UnsafeUnpin for AppStateWrapper<S>
impl<S> UnwindSafe for AppStateWrapper<S>
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