pub struct InMemoryEventStorage { /* private fields */ }Expand description
In-memory event storage (for testing and development)
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryEventStorage
impl Clone for InMemoryEventStorage
Source§fn clone(&self) -> InMemoryEventStorage
fn clone(&self) -> InMemoryEventStorage
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 EventStorage for InMemoryEventStorage
impl EventStorage for InMemoryEventStorage
Source§fn store<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 Event,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 Event,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store an event
Source§fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 EventFilter,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Event>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 EventFilter,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Event>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Query events by filter
Source§fn query_range<'life0, 'async_trait>(
&'life0 self,
start: DateTime<Utc>,
end: DateTime<Utc>,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Event>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_range<'life0, 'async_trait>(
&'life0 self,
start: DateTime<Utc>,
end: DateTime<Utc>,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Event>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query events in a time range
Auto Trait Implementations§
impl Freeze for InMemoryEventStorage
impl !RefUnwindSafe for InMemoryEventStorage
impl Send for InMemoryEventStorage
impl Sync for InMemoryEventStorage
impl Unpin for InMemoryEventStorage
impl !UnwindSafe for InMemoryEventStorage
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