pub struct MemoryDB { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl DB for MemoryDB
impl DB for MemoryDB
fn load<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn dump<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn primary_key(&self) -> u64
fn recurrence_key(&self) -> u64
fn set_primary_key(&mut self, primary_key: u64)
fn set_recurrence_key(&mut self, primary_key: u64)
fn delete<'life0, 'async_trait>(
&'life0 mut self,
primary_key: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_recurrence<'life0, 'async_trait>(
&'life0 mut self,
recurrence_key: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn record<'life0, 'async_trait>(
&'life0 mut self,
record: Record,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn record_recurrence<'life0, 'async_trait>(
&'life0 mut self,
record: RecurringRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_record<'life0, 'async_trait>(
&'life0 mut self,
record: Record,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_recurrence<'life0, 'async_trait>(
&'life0 mut self,
record: RecurringRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_recurrence<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RecurringRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_recurrence<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_today<'life0, 'async_trait>(
&'life0 mut self,
include_completed: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<Record>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_all<'life0, 'async_trait>(
&'life0 mut self,
include_completed: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<Record>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn events_now<'life0, 'async_trait>(
&'life0 mut self,
last: Duration,
include_completed: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<Record>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn complete_task<'life0, 'async_trait>(
&'life0 mut self,
primary_key: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 mut self,
primary_key: u64,
) -> Pin<Box<dyn Future<Output = Result<Record>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_recurring<'life0, 'async_trait>(
&'life0 mut self,
recurrence_key: u64,
) -> Pin<Box<dyn Future<Output = Result<RecurringRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'async_trait>(
&'life0 mut self,
record: Record,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_recurring<'life0, 'async_trait>(
&'life0 mut self,
record: RecurringRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_key(&mut self) -> u64
fn next_recurrence_key(&mut self) -> u64
fn record_entry<'life0, 'async_trait>(
&'life0 mut self,
entry: EntryParser,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<'de> Deserialize<'de> for MemoryDB
impl<'de> Deserialize<'de> for MemoryDB
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MemoryDB
impl RefUnwindSafe for MemoryDB
impl Send for MemoryDB
impl Sync for MemoryDB
impl Unpin for MemoryDB
impl UnwindSafe for MemoryDB
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more