pub struct SessionQueryHandler<R>where
R: StreamRepository,{ /* private fields */ }
Expand description
Handler for session-related queries
Implementations§
Source§impl<R> SessionQueryHandler<R>where
R: StreamRepository,
impl<R> SessionQueryHandler<R>where
R: StreamRepository,
Trait Implementations§
Source§impl<R> Debug for SessionQueryHandler<R>where
R: StreamRepository + Debug,
impl<R> Debug for SessionQueryHandler<R>where
R: StreamRepository + Debug,
Source§impl<R> QueryHandler<GetActiveSessionsQuery, SessionsResponse> for SessionQueryHandler<R>
impl<R> QueryHandler<GetActiveSessionsQuery, SessionsResponse> for SessionQueryHandler<R>
fn handle<'life0, 'async_trait>(
&'life0 self,
query: GetActiveSessionsQuery,
) -> Pin<Box<dyn Future<Output = ApplicationResult<SessionsResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<R> QueryHandler<GetSessionHealthQuery, HealthResponse> for SessionQueryHandler<R>
impl<R> QueryHandler<GetSessionHealthQuery, HealthResponse> for SessionQueryHandler<R>
fn handle<'life0, 'async_trait>(
&'life0 self,
query: GetSessionHealthQuery,
) -> Pin<Box<dyn Future<Output = ApplicationResult<HealthResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<R> QueryHandler<GetSessionQuery, SessionResponse> for SessionQueryHandler<R>
impl<R> QueryHandler<GetSessionQuery, SessionResponse> for SessionQueryHandler<R>
fn handle<'life0, 'async_trait>(
&'life0 self,
query: GetSessionQuery,
) -> Pin<Box<dyn Future<Output = ApplicationResult<SessionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<R> QueryHandler<SearchSessionsQuery, SessionsResponse> for SessionQueryHandler<R>
impl<R> QueryHandler<SearchSessionsQuery, SessionsResponse> for SessionQueryHandler<R>
fn handle<'life0, 'async_trait>(
&'life0 self,
query: SearchSessionsQuery,
) -> Pin<Box<dyn Future<Output = ApplicationResult<SessionsResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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> 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