euv-ui 0.34.1

Reusable UI component library for the euv framework, providing buttons, cards, modals, inputs, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

/// Which browser storage a [`UseStorage`] handle reads and writes.
///
/// The two storages differ in lifetime, not in shape: both are plain
/// string maps on the window.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum UseStorageKind {
    /// `window.localStorage` — survives a reload and a browser restart.
    Local,
    /// `window.sessionStorage` — survives a reload, gone with the tab.
    Session,
}