pub struct StreamQueryHandler<R, S, F>{ /* private fields */ }Expand description
Handler for stream-related queries
Implementations§
Source§impl<R, S, F> StreamQueryHandler<R, S, F>
impl<R, S, F> StreamQueryHandler<R, S, F>
Trait Implementations§
Source§impl<R, S, F> Debug for StreamQueryHandler<R, S, F>where
R: StreamRepositoryGat + 'static + Debug,
S: StreamStoreGat + 'static + Debug,
F: FrameStoreGat + 'static + Debug,
impl<R, S, F> Debug for StreamQueryHandler<R, S, F>where
R: StreamRepositoryGat + 'static + Debug,
S: StreamStoreGat + 'static + Debug,
F: FrameStoreGat + 'static + Debug,
Source§impl<R, S, F> QueryHandlerGat<GetStreamFramesQuery> for StreamQueryHandler<R, S, F>where
R: StreamRepositoryGat + Send + Sync,
S: StreamStoreGat + Send + Sync,
F: FrameStoreGat + Send + Sync,
impl<R, S, F> QueryHandlerGat<GetStreamFramesQuery> for StreamQueryHandler<R, S, F>where
R: StreamRepositoryGat + Send + Sync,
S: StreamStoreGat + Send + Sync,
F: FrameStoreGat + Send + Sync,
Source§type Response = FramesResponse
type Response = FramesResponse
The response type for this query
Source§type HandleFuture<'a> = impl Future<Output = Result<<StreamQueryHandler<R, S, F> as QueryHandlerGat<GetStreamFramesQuery>>::Response, ApplicationError>> + Send + 'a
where
Self: 'a
type HandleFuture<'a> = impl Future<Output = Result<<StreamQueryHandler<R, S, F> as QueryHandlerGat<GetStreamFramesQuery>>::Response, ApplicationError>> + Send + 'a where Self: 'a
Future type returned by handle method
Source§fn handle(&self, query: GetStreamFramesQuery) -> Self::HandleFuture<'_>
fn handle(&self, query: GetStreamFramesQuery) -> Self::HandleFuture<'_>
Handle the query and return a future
Source§impl<R, S, F> QueryHandlerGat<GetStreamQuery> for StreamQueryHandler<R, S, F>where
R: StreamRepositoryGat + Send + Sync,
S: StreamStoreGat + Send + Sync,
F: FrameStoreGat + Send + Sync,
impl<R, S, F> QueryHandlerGat<GetStreamQuery> for StreamQueryHandler<R, S, F>where
R: StreamRepositoryGat + Send + Sync,
S: StreamStoreGat + Send + Sync,
F: FrameStoreGat + Send + Sync,
Source§type Response = StreamResponse
type Response = StreamResponse
The response type for this query
Source§type HandleFuture<'a> = impl Future<Output = Result<<StreamQueryHandler<R, S, F> as QueryHandlerGat<GetStreamQuery>>::Response, ApplicationError>> + Send + 'a
where
Self: 'a
type HandleFuture<'a> = impl Future<Output = Result<<StreamQueryHandler<R, S, F> as QueryHandlerGat<GetStreamQuery>>::Response, ApplicationError>> + Send + 'a where Self: 'a
Future type returned by handle method
Source§fn handle(&self, query: GetStreamQuery) -> Self::HandleFuture<'_>
fn handle(&self, query: GetStreamQuery) -> Self::HandleFuture<'_>
Handle the query and return a future
Source§impl<R, S, F> QueryHandlerGat<GetStreamsForSessionQuery> for StreamQueryHandler<R, S, F>where
R: StreamRepositoryGat + Send + Sync,
S: StreamStoreGat + Send + Sync,
F: FrameStoreGat + Send + Sync,
impl<R, S, F> QueryHandlerGat<GetStreamsForSessionQuery> for StreamQueryHandler<R, S, F>where
R: StreamRepositoryGat + Send + Sync,
S: StreamStoreGat + Send + Sync,
F: FrameStoreGat + Send + Sync,
Source§type Response = StreamsResponse
type Response = StreamsResponse
The response type for this query
Source§type HandleFuture<'a> = impl Future<Output = Result<<StreamQueryHandler<R, S, F> as QueryHandlerGat<GetStreamsForSessionQuery>>::Response, ApplicationError>> + Send + 'a
where
Self: 'a
type HandleFuture<'a> = impl Future<Output = Result<<StreamQueryHandler<R, S, F> as QueryHandlerGat<GetStreamsForSessionQuery>>::Response, ApplicationError>> + Send + 'a where Self: 'a
Future type returned by handle method
Source§fn handle(&self, query: GetStreamsForSessionQuery) -> Self::HandleFuture<'_>
fn handle(&self, query: GetStreamsForSessionQuery) -> Self::HandleFuture<'_>
Handle the query and return a future
Auto Trait Implementations§
impl<R, S, F> Freeze for StreamQueryHandler<R, S, F>
impl<R, S, F> RefUnwindSafe for StreamQueryHandler<R, S, F>
impl<R, S, F> Send for StreamQueryHandler<R, S, F>
impl<R, S, F> Sync for StreamQueryHandler<R, S, F>
impl<R, S, F> Unpin for StreamQueryHandler<R, S, F>where
S: Unpin,
impl<R, S, F> UnsafeUnpin for StreamQueryHandler<R, S, F>
impl<R, S, F> UnwindSafe for StreamQueryHandler<R, S, F>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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