pub struct ActionExpectationBuilder<T: ActorEntity> {
id: T::Id,
expectations: Arc<Mutex<VecDeque<Expectation<T>>>>,
}Expand description
Builder for action expectations.
Fields§
§id: T::Id§expectations: Arc<Mutex<VecDeque<Expectation<T>>>>Implementations§
Source§impl<T: ActorEntity> ActionExpectationBuilder<T>
impl<T: ActorEntity> ActionExpectationBuilder<T>
Sourcepub fn return_ok(self, result: T::ActionResult)
pub fn return_ok(self, result: T::ActionResult)
Sets the expectation to return a successful result.
Sourcepub fn return_err(self, error: FrameworkError)
pub fn return_err(self, error: FrameworkError)
Sets the expectation to return an error.
Auto Trait Implementations§
impl<T> Freeze for ActionExpectationBuilder<T>
impl<T> RefUnwindSafe for ActionExpectationBuilder<T>
impl<T> Send for ActionExpectationBuilder<T>
impl<T> Sync for ActionExpectationBuilder<T>
impl<T> Unpin for ActionExpectationBuilder<T>
impl<T> UnwindSafe for ActionExpectationBuilder<T>
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