pub struct SessionQueryHandler<R>where
R: StreamRepositoryGat + 'static,{ /* private fields */ }Expand description
Handler for session-related queries
Implementations§
Source§impl<R> SessionQueryHandler<R>where
R: StreamRepositoryGat + 'static,
impl<R> SessionQueryHandler<R>where
R: StreamRepositoryGat + 'static,
Trait Implementations§
Source§impl<R> Debug for SessionQueryHandler<R>where
R: StreamRepositoryGat + 'static + Debug,
impl<R> Debug for SessionQueryHandler<R>where
R: StreamRepositoryGat + 'static + Debug,
Source§impl<R> QueryHandlerGat<GetActiveSessionsQuery> for SessionQueryHandler<R>
impl<R> QueryHandlerGat<GetActiveSessionsQuery> for SessionQueryHandler<R>
Source§type Response = SessionsResponse
type Response = SessionsResponse
The response type for this query
Source§type HandleFuture<'a> = impl Future<Output = Result<<SessionQueryHandler<R> as QueryHandlerGat<GetActiveSessionsQuery>>::Response, ApplicationError>> + Send + 'a
where
Self: 'a
type HandleFuture<'a> = impl Future<Output = Result<<SessionQueryHandler<R> as QueryHandlerGat<GetActiveSessionsQuery>>::Response, ApplicationError>> + Send + 'a where Self: 'a
Future type returned by handle method
Source§fn handle(&self, query: GetActiveSessionsQuery) -> Self::HandleFuture<'_>
fn handle(&self, query: GetActiveSessionsQuery) -> Self::HandleFuture<'_>
Handle the query and return a future
Source§impl<R> QueryHandlerGat<GetSessionHealthQuery> for SessionQueryHandler<R>
impl<R> QueryHandlerGat<GetSessionHealthQuery> for SessionQueryHandler<R>
Source§type Response = HealthResponse
type Response = HealthResponse
The response type for this query
Source§type HandleFuture<'a> = impl Future<Output = Result<<SessionQueryHandler<R> as QueryHandlerGat<GetSessionHealthQuery>>::Response, ApplicationError>> + Send + 'a
where
Self: 'a
type HandleFuture<'a> = impl Future<Output = Result<<SessionQueryHandler<R> as QueryHandlerGat<GetSessionHealthQuery>>::Response, ApplicationError>> + Send + 'a where Self: 'a
Future type returned by handle method
Source§fn handle(&self, query: GetSessionHealthQuery) -> Self::HandleFuture<'_>
fn handle(&self, query: GetSessionHealthQuery) -> Self::HandleFuture<'_>
Handle the query and return a future
Source§impl<R> QueryHandlerGat<GetSessionQuery> for SessionQueryHandler<R>
impl<R> QueryHandlerGat<GetSessionQuery> for SessionQueryHandler<R>
Source§type Response = SessionResponse
type Response = SessionResponse
The response type for this query
Source§type HandleFuture<'a> = impl Future<Output = Result<<SessionQueryHandler<R> as QueryHandlerGat<GetSessionQuery>>::Response, ApplicationError>> + Send + 'a
where
Self: 'a
type HandleFuture<'a> = impl Future<Output = Result<<SessionQueryHandler<R> as QueryHandlerGat<GetSessionQuery>>::Response, ApplicationError>> + Send + 'a where Self: 'a
Future type returned by handle method
Source§fn handle(&self, query: GetSessionQuery) -> Self::HandleFuture<'_>
fn handle(&self, query: GetSessionQuery) -> Self::HandleFuture<'_>
Handle the query and return a future
Source§impl<R> QueryHandlerGat<GetSessionStatsQuery> for SessionQueryHandler<R>
impl<R> QueryHandlerGat<GetSessionStatsQuery> for SessionQueryHandler<R>
Source§type Response = SessionStatsResponse
type Response = SessionStatsResponse
The response type for this query
Source§type HandleFuture<'a> = impl Future<Output = Result<<SessionQueryHandler<R> as QueryHandlerGat<GetSessionStatsQuery>>::Response, ApplicationError>> + Send + 'a
where
Self: 'a
type HandleFuture<'a> = impl Future<Output = Result<<SessionQueryHandler<R> as QueryHandlerGat<GetSessionStatsQuery>>::Response, ApplicationError>> + Send + 'a where Self: 'a
Future type returned by handle method
Source§fn handle(&self, query: GetSessionStatsQuery) -> Self::HandleFuture<'_>
fn handle(&self, query: GetSessionStatsQuery) -> Self::HandleFuture<'_>
Handle the query and return a future
Source§impl<R> QueryHandlerGat<SearchSessionsQuery> for SessionQueryHandler<R>
impl<R> QueryHandlerGat<SearchSessionsQuery> for SessionQueryHandler<R>
Source§type Response = SessionsResponse
type Response = SessionsResponse
The response type for this query
Source§type HandleFuture<'a> = impl Future<Output = Result<<SessionQueryHandler<R> as QueryHandlerGat<SearchSessionsQuery>>::Response, ApplicationError>> + Send + 'a
where
Self: 'a
type HandleFuture<'a> = impl Future<Output = Result<<SessionQueryHandler<R> as QueryHandlerGat<SearchSessionsQuery>>::Response, ApplicationError>> + Send + 'a where Self: 'a
Future type returned by handle method
Source§fn handle(&self, query: SearchSessionsQuery) -> Self::HandleFuture<'_>
fn handle(&self, query: SearchSessionsQuery) -> Self::HandleFuture<'_>
Handle the query and return a future
Auto Trait Implementations§
impl<R> Freeze for SessionQueryHandler<R>
impl<R> RefUnwindSafe for SessionQueryHandler<R>where
R: RefUnwindSafe,
impl<R> Send for SessionQueryHandler<R>
impl<R> Sync for SessionQueryHandler<R>
impl<R> Unpin for SessionQueryHandler<R>
impl<R> UnsafeUnpin for SessionQueryHandler<R>
impl<R> UnwindSafe for SessionQueryHandler<R>where
R: RefUnwindSafe,
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