pub enum StoreMode<'a> {
Local,
Persisted {
key: &'a Expr<'a>,
},
Shared {
topic: &'a Expr<'a>,
},
Preserved,
}Variants§
Local
Persisted
Preserved
preserved across reloads — state that survives a HOT RELOAD but not a fresh session.
Distinct from persisted as "<key>", which survives everything and is a decision about
the PRODUCT. This is a decision about the EDIT LOOP: a rebuild must not empty the form you
were filling in, and a cold start must not resurrect yesterday’s draft. Between those two
there is no key to choose, because the state never leaves the session.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StoreMode<'a>
impl<'a> RefUnwindSafe for StoreMode<'a>
impl<'a> Send for StoreMode<'a>
impl<'a> Sync for StoreMode<'a>
impl<'a> Unpin for StoreMode<'a>
impl<'a> UnsafeUnpin for StoreMode<'a>
impl<'a> UnwindSafe for StoreMode<'a>
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