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: Option<u32>
) -> Result<DatabaseRequest, Error>
pub fn open( &self, name: &str, version: Option<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.
source§impl PartialEq for Factory
impl PartialEq for Factory
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more