pub struct SimpleInMemoryState(/* private fields */);Trait Implementations§
Source§impl Clone for SimpleInMemoryState
 
impl Clone for SimpleInMemoryState
Source§fn clone(&self) -> SimpleInMemoryState
 
fn clone(&self) -> SimpleInMemoryState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Default for SimpleInMemoryState
 
impl Default for SimpleInMemoryState
Source§impl KvState for SimpleInMemoryState
 
impl KvState for SimpleInMemoryState
fn get<'life0, 'life1, 'async_trait>(
    &'life0 self,
    key: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
fn put<'life0, 'life1, 'async_trait>(
    &'life0 self,
    key: &'life1 [u8],
    value: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
    &'life0 self,
    key: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
Source§fn iter_prefix<'life0, 'life1, 'async_trait>(
    &'life0 self,
    prefix: Option<&'life1 [u8]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<(Vec<u8>, Vec<u8>)>>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
 
fn iter_prefix<'life0, 'life1, 'async_trait>(
    &'life0 self,
    prefix: Option<&'life1 [u8]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<(Vec<u8>, Vec<u8>)>>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
Returns all key/value pairs, optionally filtered by a prefix.
Auto Trait Implementations§
impl Freeze for SimpleInMemoryState
impl !RefUnwindSafe for SimpleInMemoryState
impl Send for SimpleInMemoryState
impl Sync for SimpleInMemoryState
impl Unpin for SimpleInMemoryState
impl !UnwindSafe for SimpleInMemoryState
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