plinth/browser/storage
Types
pub type Estimate {
Estimate(quota: Int, usage: Int)
}
Constructors
-
Estimate(quota: Int, usage: Int)
pub type StorageManager
Values
pub fn estimate(
storage: StorageManager,
) -> promise.Promise(Result(Estimate, String))
pub fn get() -> Result(StorageManager, Nil)
pub fn get_directory(
storage: StorageManager,
) -> promise.Promise(
Result(file_system.Handle(file_system.D), String),
)
pub fn persist(
storage: StorageManager,
) -> promise.Promise(Result(Bool, String))
pub fn persisted(
storage: StorageManager,
) -> promise.Promise(Result(Bool, String))