[][src]Function webext_storage::api::set

pub fn set(
    tx: &Transaction<'_>,
    ext_id: &str,
    val: JsonValue
) -> Result<StorageChanges>

The implementation of storage[.sync].set(). On success this returns the StorageChanges defined by the chrome API - it's assumed the caller will arrange to deliver this to observers as defined in that API.