Struct app_world::WorldWithMessageBuffer
source · [−]pub struct WorldWithMessageBuffer<W: AppWorld> { /* private fields */ }
Expand description
Allows us to optionally store sent Msg
’s instead of passing them on to state.
This is useful for testing that an event handler dispatched the Msg
’s that we expected it to.
Implementations
sourceimpl<W: AppWorld> WorldWithMessageBuffer<W>
impl<W: AppWorld> WorldWithMessageBuffer<W>
Trait Implementations
Auto Trait Implementations
impl<W> RefUnwindSafe for WorldWithMessageBuffer<W> where
W: RefUnwindSafe,
impl<W> Send for WorldWithMessageBuffer<W> where
W: Send,
impl<W> Sync for WorldWithMessageBuffer<W> where
W: Sync,
impl<W> Unpin for WorldWithMessageBuffer<W> where
W: Unpin,
impl<W> UnwindSafe for WorldWithMessageBuffer<W> where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more