plinth/browser/storage

Types

pub type Estimate {
  Estimate(quota: Int, usage: Int)
}

Constructors

  • Estimate(quota: Int, usage: Int)
pub type StorageManager

Functions

pub fn estimate(
  storage: StorageManager,
) -> Promise(Result(Estimate, String))
pub fn get() -> Result(StorageManager, Nil)
pub fn get_directory(
  storage: StorageManager,
) -> Promise(Result(Handle(D), String))
pub fn persist(
  storage: StorageManager,
) -> Promise(Result(Bool, String))
pub fn persisted(
  storage: StorageManager,
) -> Promise(Result(Bool, String))
Search Document