pub struct InMemoryStreamRepository { /* private fields */ }
Expand description
In-memory implementation of StreamRepository
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryStreamRepository
impl Clone for InMemoryStreamRepository
Source§fn clone(&self) -> InMemoryStreamRepository
fn clone(&self) -> InMemoryStreamRepository
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 Debug for InMemoryStreamRepository
impl Debug for InMemoryStreamRepository
Source§impl Default for InMemoryStreamRepository
impl Default for InMemoryStreamRepository
Source§impl StreamRepository for InMemoryStreamRepository
impl StreamRepository for InMemoryStreamRepository
Source§fn find_session<'life0, 'async_trait>(
&'life0 self,
session_id: SessionId,
) -> Pin<Box<dyn Future<Output = DomainResult<Option<StreamSession>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_session<'life0, 'async_trait>(
&'life0 self,
session_id: SessionId,
) -> Pin<Box<dyn Future<Output = DomainResult<Option<StreamSession>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Find session by ID
Source§fn save_session<'life0, 'async_trait>(
&'life0 self,
session: StreamSession,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save_session<'life0, 'async_trait>(
&'life0 self,
session: StreamSession,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save session (insert or update)
Source§fn remove_session<'life0, 'async_trait>(
&'life0 self,
session_id: SessionId,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_session<'life0, 'async_trait>(
&'life0 self,
session_id: SessionId,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove session
Source§fn find_active_sessions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DomainResult<Vec<StreamSession>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_active_sessions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DomainResult<Vec<StreamSession>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Find all active sessions
Auto Trait Implementations§
impl Freeze for InMemoryStreamRepository
impl !RefUnwindSafe for InMemoryStreamRepository
impl Send for InMemoryStreamRepository
impl Sync for InMemoryStreamRepository
impl Unpin for InMemoryStreamRepository
impl !UnwindSafe for InMemoryStreamRepository
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