pub struct InMemoryFrameRepository { /* private fields */ }
Expand description
In-memory implementation of FrameRepository
Implementations§
Trait Implementations§
Source§impl Default for InMemoryFrameRepository
impl Default for InMemoryFrameRepository
Source§impl FrameRepository for InMemoryFrameRepository
impl FrameRepository for InMemoryFrameRepository
Source§fn store_frame<'life0, 'async_trait>(
&'life0 self,
frame: Frame,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_frame<'life0, 'async_trait>(
&'life0 self,
frame: Frame,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Store frame with priority indexing
Source§fn store_frames<'life0, 'async_trait>(
&'life0 self,
frames: Vec<Frame>,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_frames<'life0, 'async_trait>(
&'life0 self,
frames: Vec<Frame>,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Store multiple frames efficiently
Source§fn get_frames_by_stream<'life0, 'async_trait>(
&'life0 self,
stream_id: StreamId,
priority_filter: Option<Priority>,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = DomainResult<FrameQueryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_frames_by_stream<'life0, 'async_trait>(
&'life0 self,
stream_id: StreamId,
priority_filter: Option<Priority>,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = DomainResult<FrameQueryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get frames by stream with priority filtering
Source§fn get_frames_by_path<'life0, 'async_trait>(
&'life0 self,
stream_id: StreamId,
path: JsonPath,
) -> Pin<Box<dyn Future<Output = DomainResult<Vec<Frame>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_frames_by_path<'life0, 'async_trait>(
&'life0 self,
stream_id: StreamId,
path: JsonPath,
) -> Pin<Box<dyn Future<Output = DomainResult<Vec<Frame>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get frames by JSON path
Source§fn cleanup_old_frames<'life0, 'async_trait>(
&'life0 self,
older_than: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = DomainResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cleanup_old_frames<'life0, 'async_trait>(
&'life0 self,
older_than: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = DomainResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete frames older than specified time
Source§fn get_frame_priority_distribution<'life0, 'async_trait>(
&'life0 self,
stream_id: StreamId,
) -> Pin<Box<dyn Future<Output = DomainResult<PriorityDistribution>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_frame_priority_distribution<'life0, 'async_trait>(
&'life0 self,
stream_id: StreamId,
) -> Pin<Box<dyn Future<Output = DomainResult<PriorityDistribution>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get frame count by priority distribution
Auto Trait Implementations§
impl Freeze for InMemoryFrameRepository
impl !RefUnwindSafe for InMemoryFrameRepository
impl Send for InMemoryFrameRepository
impl Sync for InMemoryFrameRepository
impl Unpin for InMemoryFrameRepository
impl !UnwindSafe for InMemoryFrameRepository
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