pub struct InMemory { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Database for InMemory
impl Database for InMemory
fn set_key<'life0, 'async_trait>(
&'life0 mut self,
k: impl 'async_trait + DatabaseKey,
v: Bytes,
) -> Pin<Box<dyn Future<Output = BotnetResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_key<'life0, 'async_trait>(
&'life0 self,
k: impl 'async_trait + DatabaseKey,
) -> Pin<Box<dyn Future<Output = BotnetResult<Option<Bytes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_bytes<'life0, 'async_trait>(
&'life0 self,
k: Bytes,
v: Bytes,
) -> Pin<Box<dyn Future<Output = BotnetResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_bytes<'life0, 'life1, 'async_trait>(
&'life0 self,
k: &'life1 Bytes,
) -> Pin<Box<dyn Future<Output = BotnetResult<Option<Bytes>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for InMemory
impl !UnwindSafe for InMemory
impl Freeze for InMemory
impl Send for InMemory
impl Sync for InMemory
impl Unpin for InMemory
impl UnsafeUnpin for InMemory
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