pub struct Factory { /* private fields */ }Expand description
Lets applications asynchronously access the indexed databases.
Implementations
sourceimpl 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
sourceimpl From<Factory> for IdbFactory
impl From<Factory> for IdbFactory
sourceimpl From<IdbFactory> for Factory
impl From<IdbFactory> for Factory
sourcefn from(inner: IdbFactory) -> Self
fn from(inner: IdbFactory) -> Self
Converts to this type from the input type.
impl Eq for Factory
impl StructuralEq for Factory
impl StructuralPartialEq for Factory
Auto Trait Implementations
impl RefUnwindSafe for Factory
impl !Send for Factory
impl !Sync for Factory
impl Unpin for Factory
impl UnwindSafe for Factory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more