[][src]Struct kvdb_web::Database

pub struct Database { /* fields omitted */ }

Database backed by both IndexedDB and in memory implementation.

Implementations

impl Database[src]

pub async fn open(name: String, columns: u32) -> Result<Database, Error>[src]

Opens the database with the given name, and the specified number of columns (not including the default one).

pub fn name(&self) -> &str[src]

Get the database name.

pub fn version(&self) -> u32[src]

Get the database version.

Trait Implementations

impl Drop for Database[src]

impl KeyValueDB for Database[src]

impl MallocSizeOf for Database[src]

Auto Trait Implementations

impl !RefUnwindSafe for Database

impl Send for Database

impl Sync for Database

impl Unpin for Database

impl UnwindSafe for Database

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MallocSizeOfExt for T where
    T: MallocSizeOf
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.