pub struct WhenTest<A, R> { /* private fields */ }
Expand description
An aggregate when a command is performed.
Implementations§
Source§impl<A, R> WhenTest<A, R>where
A: Aggregate,
impl<A, R> WhenTest<A, R>where
A: Aggregate,
Sourcepub fn into_result(self) -> R
pub fn into_result(self) -> R
Get the inner result from the previous when() action.
Sourcepub fn into_state(self) -> A
pub fn into_state(self) -> A
Get the inner aggregate.
Sourcepub fn then<T>(self, result: T) -> WhenTest<A, R>
pub fn then<T>(self, result: T) -> WhenTest<A, R>
Then the result of the previous when() action should equal the given parameter.
Auto Trait Implementations§
impl<A, R> Freeze for WhenTest<A, R>
impl<A, R> RefUnwindSafe for WhenTest<A, R>where
A: RefUnwindSafe,
R: RefUnwindSafe,
impl<A, R> Send for WhenTest<A, R>
impl<A, R> Sync for WhenTest<A, R>
impl<A, R> Unpin for WhenTest<A, R>
impl<A, R> UnwindSafe for WhenTest<A, R>where
A: UnwindSafe,
R: UnwindSafe,
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