pub struct GatInMemoryStreamRepository { /* private fields */ }Expand description
GAT-based in-memory implementation of StreamRepositoryGat
Implementations§
Trait Implementations§
Source§impl Clone for GatInMemoryStreamRepository
impl Clone for GatInMemoryStreamRepository
Source§fn clone(&self) -> GatInMemoryStreamRepository
fn clone(&self) -> GatInMemoryStreamRepository
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 GatInMemoryStreamRepository
impl Debug for GatInMemoryStreamRepository
Source§impl StreamRepositoryGat for GatInMemoryStreamRepository
impl StreamRepositoryGat for GatInMemoryStreamRepository
Source§type FindSessionFuture<'a> = impl Future<Output = Result<Option<StreamSession>, DomainError>> + Send + 'a
where
Self: 'a
type FindSessionFuture<'a> = impl Future<Output = Result<Option<StreamSession>, DomainError>> + Send + 'a where Self: 'a
Future type for finding sessions
Source§type SaveSessionFuture<'a> = impl Future<Output = Result<(), DomainError>> + Send + 'a
where
Self: 'a
type SaveSessionFuture<'a> = impl Future<Output = Result<(), DomainError>> + Send + 'a where Self: 'a
Future type for saving sessions
Source§type RemoveSessionFuture<'a> = impl Future<Output = Result<(), DomainError>> + Send + 'a
where
Self: 'a
type RemoveSessionFuture<'a> = impl Future<Output = Result<(), DomainError>> + Send + 'a where Self: 'a
Future type for removing sessions
Source§type FindActiveSessionsFuture<'a> = impl Future<Output = Result<Vec<StreamSession>, DomainError>> + Send + 'a
where
Self: 'a
type FindActiveSessionsFuture<'a> = impl Future<Output = Result<Vec<StreamSession>, DomainError>> + Send + 'a where Self: 'a
Future type for finding active sessions
Source§fn find_session(&self, session_id: SessionId) -> Self::FindSessionFuture<'_>
fn find_session(&self, session_id: SessionId) -> Self::FindSessionFuture<'_>
Find session by ID
Source§fn save_session(&self, session: StreamSession) -> Self::SaveSessionFuture<'_>
fn save_session(&self, session: StreamSession) -> Self::SaveSessionFuture<'_>
Save session (insert or update)
Source§fn remove_session(&self, session_id: SessionId) -> Self::RemoveSessionFuture<'_>
fn remove_session(&self, session_id: SessionId) -> Self::RemoveSessionFuture<'_>
Remove session
Source§fn find_active_sessions(&self) -> Self::FindActiveSessionsFuture<'_>
fn find_active_sessions(&self) -> Self::FindActiveSessionsFuture<'_>
Find all active sessions
Auto Trait Implementations§
impl Freeze for GatInMemoryStreamRepository
impl !RefUnwindSafe for GatInMemoryStreamRepository
impl Send for GatInMemoryStreamRepository
impl Sync for GatInMemoryStreamRepository
impl Unpin for GatInMemoryStreamRepository
impl !UnwindSafe for GatInMemoryStreamRepository
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