pub struct SessionCommandHandler<R, P>where
R: StreamRepository,
P: EventPublisher,{ /* private fields */ }
Expand description
Handler for session management commands
Implementations§
Source§impl<R, P> SessionCommandHandler<R, P>where
R: StreamRepository,
P: EventPublisher,
impl<R, P> SessionCommandHandler<R, P>where
R: StreamRepository,
P: EventPublisher,
Trait Implementations§
Source§impl<R, P> CommandHandler<BatchGenerateFramesCommand, Vec<Frame>> for SessionCommandHandler<R, P>
impl<R, P> CommandHandler<BatchGenerateFramesCommand, Vec<Frame>> for SessionCommandHandler<R, P>
Source§impl<R, P> CommandHandler<CloseSessionCommand, ()> for SessionCommandHandler<R, P>
impl<R, P> CommandHandler<CloseSessionCommand, ()> for SessionCommandHandler<R, P>
fn handle<'life0, 'async_trait>(
&'life0 self,
command: CloseSessionCommand,
) -> Pin<Box<dyn Future<Output = ApplicationResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<R, P> CommandHandler<CompleteStreamCommand, ()> for SessionCommandHandler<R, P>
impl<R, P> CommandHandler<CompleteStreamCommand, ()> for SessionCommandHandler<R, P>
fn handle<'life0, 'async_trait>(
&'life0 self,
command: CompleteStreamCommand,
) -> Pin<Box<dyn Future<Output = ApplicationResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<R, P> CommandHandler<CreateSessionCommand, SessionId> for SessionCommandHandler<R, P>
impl<R, P> CommandHandler<CreateSessionCommand, SessionId> for SessionCommandHandler<R, P>
fn handle<'life0, 'async_trait>(
&'life0 self,
command: CreateSessionCommand,
) -> Pin<Box<dyn Future<Output = ApplicationResult<SessionId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<R, P> CommandHandler<CreateStreamCommand, StreamId> for SessionCommandHandler<R, P>
impl<R, P> CommandHandler<CreateStreamCommand, StreamId> for SessionCommandHandler<R, P>
fn handle<'life0, 'async_trait>(
&'life0 self,
command: CreateStreamCommand,
) -> Pin<Box<dyn Future<Output = ApplicationResult<StreamId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<R, P> CommandHandler<GenerateFramesCommand, Vec<Frame>> for SessionCommandHandler<R, P>
impl<R, P> CommandHandler<GenerateFramesCommand, Vec<Frame>> for SessionCommandHandler<R, P>
Source§impl<R, P> CommandHandler<StartStreamCommand, ()> for SessionCommandHandler<R, P>
impl<R, P> CommandHandler<StartStreamCommand, ()> for SessionCommandHandler<R, P>
fn handle<'life0, 'async_trait>(
&'life0 self,
command: StartStreamCommand,
) -> Pin<Box<dyn Future<Output = ApplicationResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<R, P> Debug for SessionCommandHandler<R, P>
impl<R, P> Debug for SessionCommandHandler<R, P>
Auto Trait Implementations§
impl<R, P> Freeze for SessionCommandHandler<R, P>
impl<R, P> RefUnwindSafe for SessionCommandHandler<R, P>where
R: RefUnwindSafe,
P: RefUnwindSafe,
impl<R, P> Send for SessionCommandHandler<R, P>
impl<R, P> Sync for SessionCommandHandler<R, P>
impl<R, P> Unpin for SessionCommandHandler<R, P>
impl<R, P> UnwindSafe for SessionCommandHandler<R, P>where
R: RefUnwindSafe,
P: 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