pub struct InMemoryStreamStore { /* private fields */ }
Expand description
In-memory implementation of StreamStore
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryStreamStore
impl Clone for InMemoryStreamStore
Source§fn clone(&self) -> InMemoryStreamStore
fn clone(&self) -> InMemoryStreamStore
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 InMemoryStreamStore
impl Debug for InMemoryStreamStore
Source§impl Default for InMemoryStreamStore
impl Default for InMemoryStreamStore
Source§impl StreamStore for InMemoryStreamStore
impl StreamStore for InMemoryStreamStore
Source§fn store_stream<'life0, 'async_trait>(
&'life0 self,
stream: Stream,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_stream<'life0, 'async_trait>(
&'life0 self,
stream: Stream,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Store a stream
Source§fn get_stream<'life0, 'async_trait>(
&'life0 self,
stream_id: StreamId,
) -> Pin<Box<dyn Future<Output = DomainResult<Option<Stream>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_stream<'life0, 'async_trait>(
&'life0 self,
stream_id: StreamId,
) -> Pin<Box<dyn Future<Output = DomainResult<Option<Stream>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve stream by ID
Source§fn delete_stream<'life0, 'async_trait>(
&'life0 self,
stream_id: StreamId,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_stream<'life0, 'async_trait>(
&'life0 self,
stream_id: StreamId,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete stream
Auto Trait Implementations§
impl Freeze for InMemoryStreamStore
impl !RefUnwindSafe for InMemoryStreamStore
impl Send for InMemoryStreamStore
impl Sync for InMemoryStreamStore
impl Unpin for InMemoryStreamStore
impl !UnwindSafe for InMemoryStreamStore
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