pub struct AsyncMemoryRepo { /* private fields */ }Implementations§
Source§impl AsyncMemoryRepo
impl AsyncMemoryRepo
pub fn new(repo: MemoryRepo) -> Self
Trait Implementations§
Source§impl AsyncRepo for AsyncMemoryRepo
impl AsyncRepo for AsyncMemoryRepo
fn adapter_kind(&self) -> AdapterKind
fn insert<'a>( &'a self, context: &'a AsyncQueryContext, table: &'a str, data: Row, ) -> AsyncRepoFuture<'a, StoredRow>
fn update<'a>( &'a self, context: &'a AsyncQueryContext, table: &'a str, id: u64, data: Row, ) -> AsyncRepoFuture<'a, StoredRow>
fn delete<'a>( &'a self, context: &'a AsyncQueryContext, table: &'a str, id: u64, ) -> AsyncRepoFuture<'a, ()>
fn find<'a>( &'a self, context: &'a AsyncQueryContext, table: &'a str, id: u64, ) -> AsyncRepoFuture<'a, Option<StoredRow>>
fn list<'a>( &'a self, context: &'a AsyncQueryContext, table: &'a str, query: &'a Query, ) -> AsyncRepoFuture<'a, Vec<StoredRow>>
Source§impl Clone for AsyncMemoryRepo
impl Clone for AsyncMemoryRepo
Source§fn clone(&self) -> AsyncMemoryRepo
fn clone(&self) -> AsyncMemoryRepo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AsyncMemoryRepo
impl RefUnwindSafe for AsyncMemoryRepo
impl Send for AsyncMemoryRepo
impl Sync for AsyncMemoryRepo
impl Unpin for AsyncMemoryRepo
impl UnsafeUnpin for AsyncMemoryRepo
impl UnwindSafe for AsyncMemoryRepo
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