# [−] [src] Trait db::kv::KeyValueDatabase

    pub trait KeyValueDatabase: Send + Sync {
        fn write(&self, tx: Transaction) -> Result<(), String>;
        fn get(&self, key: &Key) -> Result<KeyState<Value>, String>;
    }

## Required Methods

### `fn write(&self, tx: Transaction) -> Result<(), String>`

### `fn get(&self, key: &Key) -> Result<KeyState<Value>, String>`

## Implementors

###

`impl KeyValueDatabase for Database`

[src]

####

`fn write(&self, tx: Transaction) -> Result<(), String>`

[src]

####

`fn get(&self, key: &Key) -> Result<KeyState<Value>, String>`

[src]

###

`impl KeyValueDatabase for MemoryDatabase`

[src]

####

`fn write(&self, tx: Transaction) -> Result<(), String>`

[src]

####

`fn get(&self, key: &Key) -> Result<KeyState<Value>, String>`

[src]

###

`impl KeyValueDatabase for SharedMemoryDatabase`

[src]

####

`fn write(&self, tx: Transaction) -> Result<(), String>`

[src]

####

`fn get(&self, key: &Key) -> Result<KeyState<Value>, String>`

[src]

###

`impl<'a, T> KeyValueDatabase for OverlayDatabase<'a, T> where T: 'a + KeyValueDatabase,`

[src]

####

`fn write(&self, tx: Transaction) -> Result<(), String>`

[src]

####

`fn get(&self, key: &Key) -> Result<KeyState<Value>, String>`

[src]

###

`impl<T> KeyValueDatabase for AutoFlushingOverlayDatabase<T> where T: KeyValueDatabase,`

[src]

####

`fn write(&self, tx: Transaction) -> Result<(), String>`

[src]

####

`fn get(&self, key: &Key) -> Result<KeyState<Value>, String>`

[src]

###

`impl<T> KeyValueDatabase for CacheDatabase<T> where T: KeyValueDatabase,`

[src]

####

`fn write(&self, tx: Transaction) -> Result<(), String>`

[src]

####

`fn get(&self, key: &Key) -> Result<KeyState<Value>, String>`

[src]

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)