Enum eventsourced::CmdEffect
source · pub enum CmdEffect<E, Reply, Error>where
E: EventSourced,{
EmitAndReply(E::Evt, Box<dyn FnOnce(&E) -> Reply + Send + Sync>),
Reject(Error),
}Expand description
The result of handling a command, either emitting an event and replying or rejecting the command.
Variants§
Implementations§
source§impl<E, Reply, Error> CmdEffect<E, Reply, Error>where
E: EventSourced,
impl<E, Reply, Error> CmdEffect<E, Reply, Error>where
E: EventSourced,
Auto Trait Implementations§
impl<E, Reply, Error> Freeze for CmdEffect<E, Reply, Error>
impl<E, Reply, Error> !RefUnwindSafe for CmdEffect<E, Reply, Error>
impl<E, Reply, Error> Send for CmdEffect<E, Reply, Error>where
Error: Send,
impl<E, Reply, Error> Sync for CmdEffect<E, Reply, Error>where
Error: Sync,
impl<E, Reply, Error> Unpin for CmdEffect<E, Reply, Error>
impl<E, Reply, Error> !UnwindSafe for CmdEffect<E, Reply, Error>
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