pub struct CreateExpectationBuilder<T: ActorEntity> {
expectations: Arc<Mutex<VecDeque<Expectation<T>>>>,
}Expand description
Builder for create expectations.
Fields§
§expectations: Arc<Mutex<VecDeque<Expectation<T>>>>Implementations§
Source§impl<T: ActorEntity> CreateExpectationBuilder<T>
impl<T: ActorEntity> CreateExpectationBuilder<T>
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 CreateExpectationBuilder<T>
impl<T> RefUnwindSafe for CreateExpectationBuilder<T>
impl<T> Send for CreateExpectationBuilder<T>
impl<T> Sync for CreateExpectationBuilder<T>
impl<T> Unpin for CreateExpectationBuilder<T>
impl<T> UnwindSafe for CreateExpectationBuilder<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