Struct rui::StateHandle
source · pub struct StateHandle<S> { /* private fields */ }
Expand description
Weak reference to app state.
To get the underlying value, you’ll need a Context
, which is passed
to all event handlers, and functions passed to state
.
Implementations§
Trait Implementations§
source§impl<S: 'static> Binding<S> for StateHandle<S>
impl<S: 'static> Binding<S> for StateHandle<S>
source§impl<S> Clone for StateHandle<S>
impl<S> Clone for StateHandle<S>
source§impl<S> Index<StateHandle<S>> for Contextwhere
S: 'static,
impl<S> Index<StateHandle<S>> for Contextwhere S: 'static,
source§impl<S> IndexMut<StateHandle<S>> for Contextwhere
S: 'static,
impl<S> IndexMut<StateHandle<S>> for Contextwhere S: 'static,
impl<S> Copy for StateHandle<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for StateHandle<S>where S: RefUnwindSafe,
impl<S> Send for StateHandle<S>where S: Send,
impl<S> Sync for StateHandle<S>where S: Sync,
impl<S> Unpin for StateHandle<S>where S: Unpin,
impl<S> UnwindSafe for StateHandle<S>where S: 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