Struct perseus::state::GlobalState
source · pub struct GlobalState(pub Rc<RefCell<GlobalStateType>>);
Expand description
A representation of the global state in an app. This will be initialized as a string of whatever was given by the server, until a page requests it and deserializes it properly (since we can’t know the type until that happens).
Tuple Fields§
§0: Rc<RefCell<GlobalStateType>>
Trait Implementations§
source§impl Clone for GlobalState
impl Clone for GlobalState
source§fn clone(&self) -> GlobalState
fn clone(&self) -> GlobalState
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§
impl !RefUnwindSafe for GlobalState
impl !Send for GlobalState
impl !Sync for GlobalState
impl Unpin for GlobalState
impl !UnwindSafe for GlobalState
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