pub struct DefaultCommandDispatcher<CH, IS, U> { /* private fields */ }Implementations§
Source§impl<CH, IS, U> DefaultCommandDispatcher<CH, IS, U>
impl<CH, IS, U> DefaultCommandDispatcher<CH, IS, U>
pub fn new(command_hasher: CH, idempotency_service: IS, uow_factory: U) -> Self
pub fn command_hasher(&self) -> &CH
pub fn idempotency_service(&self) -> &IS
Trait Implementations§
Source§impl<CH, IS, U> CommandDispatcher for DefaultCommandDispatcher<CH, IS, U>
impl<CH, IS, U> CommandDispatcher for DefaultCommandDispatcher<CH, IS, U>
type Uow = <IS as IdempotencyService>::Uow
async fn dispatch<H>( &self, handler: &H, request_context: &RequestContext, command: H::Command, ) -> Result<H::Output, CommandDispatchError<H::Error>>
Auto Trait Implementations§
impl<CH, IS, U> Freeze for DefaultCommandDispatcher<CH, IS, U>
impl<CH, IS, U> RefUnwindSafe for DefaultCommandDispatcher<CH, IS, U>
impl<CH, IS, U> Send for DefaultCommandDispatcher<CH, IS, U>
impl<CH, IS, U> Sync for DefaultCommandDispatcher<CH, IS, U>
impl<CH, IS, U> Unpin for DefaultCommandDispatcher<CH, IS, U>
impl<CH, IS, U> UnwindSafe for DefaultCommandDispatcher<CH, IS, U>
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