pub struct InMemorySessionTransaction { /* private fields */ }
Expand description
Transaction implementation for in-memory repository
Trait Implementations§
Source§impl SessionTransaction for InMemorySessionTransaction
impl SessionTransaction for InMemorySessionTransaction
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 within transaction
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 within transaction
Source§fn add_stream<'life0, 'async_trait>(
&'life0 self,
_session_id: SessionId,
_stream: Stream,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_stream<'life0, 'async_trait>(
&'life0 self,
_session_id: SessionId,
_stream: Stream,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add stream to session within transaction
Auto Trait Implementations§
impl Freeze for InMemorySessionTransaction
impl !RefUnwindSafe for InMemorySessionTransaction
impl Send for InMemorySessionTransaction
impl Sync for InMemorySessionTransaction
impl Unpin for InMemorySessionTransaction
impl !UnwindSafe for InMemorySessionTransaction
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