Skip to main content

Module storage

Module storage 

Source
Expand description

Browser storage bindings for localStorage and sessionStorage.

Provides a unified API for persisting data in the browser.

§Example

use presentar::browser::storage::{Storage, StorageType};

let storage = Storage::new(StorageType::Local);
storage.set("key", "value");
let value = storage.get("key");

Structs§

ScopedStorage
Scoped storage with automatic key prefixing.
Storage
Browser storage interface.

Enums§

StorageError
Storage error types.
StorageType
Storage type (local or session).