pub struct Factory { /* private fields */ }Expand description
Lets applications asynchronously access the indexed databases.
Implementations§
source§impl Factory
impl Factory
sourcepub fn open(&self, name: &str, version: u32) -> Result<DatabaseRequest, Error>
pub fn open(&self, name: &str, version: u32) -> Result<DatabaseRequest, Error>
Attempts to open a connection to the named database with the specified version. If the database already exists
with a lower version and there are open connections that don’t close in response to a versionchange event, the
request will be blocked until they all close, then an upgrade will occur. If the database already exists with a
higher version the request will fail.
Trait Implementations§
source§impl From<Factory> for IdbFactory
impl From<Factory> for IdbFactory
source§impl From<IdbFactory> for Factory
impl From<IdbFactory> for Factory
source§fn from(inner: IdbFactory) -> Self
fn from(inner: IdbFactory) -> Self
Converts to this type from the input type.