pub struct FakeDbForStateTest {}Trait Implementations§
Source§impl Default for FakeDbForStateTest
impl Default for FakeDbForStateTest
Source§fn default() -> FakeDbForStateTest
fn default() -> FakeDbForStateTest
Returns the “default value” for a type. Read more
Source§impl KeyValueDB for FakeDbForStateTest
impl KeyValueDB for FakeDbForStateTest
Source§fn get_by_prefix(&self, _col: u32, _prefix: &[u8]) -> Result<Option<DBValue>>
fn get_by_prefix(&self, _col: u32, _prefix: &[u8]) -> Result<Option<DBValue>>
Get the first value matching the given prefix.
Source§fn write(&self, _transaction: DBTransaction) -> Result<()>
fn write(&self, _transaction: DBTransaction) -> Result<()>
Write a transaction of changes to the backing store.
Source§fn iter<'a>(
&'a self,
_col: u32,
) -> Box<dyn Iterator<Item = Result<DBKeyValue>> + 'a>
fn iter<'a>( &'a self, _col: u32, ) -> Box<dyn Iterator<Item = Result<DBKeyValue>> + 'a>
Iterate over the data for a given column.
Source§fn iter_with_prefix<'a>(
&'a self,
_col: u32,
_prefix: &'a [u8],
) -> Box<dyn Iterator<Item = Result<DBKeyValue>> + 'a>
fn iter_with_prefix<'a>( &'a self, _col: u32, _prefix: &'a [u8], ) -> Box<dyn Iterator<Item = Result<DBKeyValue>> + 'a>
Iterate over the data for a given column, returning all key/value pairs
where the key starts with the given prefix.
§fn transaction(&self) -> DBTransaction
fn transaction(&self) -> DBTransaction
Helper to create a new transaction.
Auto Trait Implementations§
impl Freeze for FakeDbForStateTest
impl RefUnwindSafe for FakeDbForStateTest
impl Send for FakeDbForStateTest
impl Sync for FakeDbForStateTest
impl Unpin for FakeDbForStateTest
impl UnwindSafe for FakeDbForStateTest
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