pub struct GatInMemoryStreamStore { /* private fields */ }Expand description
GAT-based in-memory implementation of StreamStoreGat
Implementations§
Trait Implementations§
Source§impl Clone for GatInMemoryStreamStore
impl Clone for GatInMemoryStreamStore
Source§fn clone(&self) -> GatInMemoryStreamStore
fn clone(&self) -> GatInMemoryStreamStore
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 GatInMemoryStreamStore
impl Debug for GatInMemoryStreamStore
Source§impl Default for GatInMemoryStreamStore
impl Default for GatInMemoryStreamStore
Source§impl StreamStoreGat for GatInMemoryStreamStore
impl StreamStoreGat for GatInMemoryStreamStore
Source§type StoreStreamFuture<'a> = impl Future<Output = Result<(), DomainError>> + Send + 'a
where
Self: 'a
type StoreStreamFuture<'a> = impl Future<Output = Result<(), DomainError>> + Send + 'a where Self: 'a
Future type for storing streams
Source§type GetStreamFuture<'a> = impl Future<Output = Result<Option<Stream>, DomainError>> + Send + 'a
where
Self: 'a
type GetStreamFuture<'a> = impl Future<Output = Result<Option<Stream>, DomainError>> + Send + 'a where Self: 'a
Future type for getting streams
Source§type DeleteStreamFuture<'a> = impl Future<Output = Result<(), DomainError>> + Send + 'a
where
Self: 'a
type DeleteStreamFuture<'a> = impl Future<Output = Result<(), DomainError>> + Send + 'a where Self: 'a
Future type for deleting streams
Source§type ListStreamsFuture<'a> = impl Future<Output = Result<Vec<Stream>, DomainError>> + Send + 'a
where
Self: 'a
type ListStreamsFuture<'a> = impl Future<Output = Result<Vec<Stream>, DomainError>> + Send + 'a where Self: 'a
Future type for listing streams
Source§fn store_stream(&self, stream: Stream) -> Self::StoreStreamFuture<'_>
fn store_stream(&self, stream: Stream) -> Self::StoreStreamFuture<'_>
Store a stream
Source§fn get_stream(&self, stream_id: StreamId) -> Self::GetStreamFuture<'_>
fn get_stream(&self, stream_id: StreamId) -> Self::GetStreamFuture<'_>
Retrieve stream by ID
Source§fn delete_stream(&self, stream_id: StreamId) -> Self::DeleteStreamFuture<'_>
fn delete_stream(&self, stream_id: StreamId) -> Self::DeleteStreamFuture<'_>
Delete stream
Source§fn list_streams_for_session(
&self,
session_id: SessionId,
) -> Self::ListStreamsFuture<'_>
fn list_streams_for_session( &self, session_id: SessionId, ) -> Self::ListStreamsFuture<'_>
List streams for session
Auto Trait Implementations§
impl Freeze for GatInMemoryStreamStore
impl !RefUnwindSafe for GatInMemoryStreamStore
impl Send for GatInMemoryStreamStore
impl Sync for GatInMemoryStreamStore
impl Unpin for GatInMemoryStreamStore
impl !UnwindSafe for GatInMemoryStreamStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more