pub struct TestRuntime<S, M> {
pub state: S,
pub update: fn(&mut S, M) -> Cmd<M>,
pub pending_effects: Vec<Effect<M>>,
}Expand description
Synchronous test runtime for asserting effect descriptions without Tokio.
Fields§
§state: S§update: fn(&mut S, M) -> Cmd<M>§pending_effects: Vec<Effect<M>>Implementations§
Auto Trait Implementations§
impl<S, M> !RefUnwindSafe for TestRuntime<S, M>
impl<S, M> !UnwindSafe for TestRuntime<S, M>
impl<S, M> Freeze for TestRuntime<S, M>where
S: Freeze,
impl<S, M> Send for TestRuntime<S, M>where
S: Send,
impl<S, M> Sync for TestRuntime<S, M>where
S: Sync,
impl<S, M> Unpin for TestRuntime<S, M>where
S: Unpin,
impl<S, M> UnsafeUnpin for TestRuntime<S, M>where
S: UnsafeUnpin,
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