Struct app_world::WorldWithMessageBuffer [−][src]
pub struct WorldWithMessageBuffer<W: AppWorld> { /* fields omitted */ }
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
After calling StateWithMessageBuffer.capture_messages(true)
, all .msg() calls will push to this
buffer.
Trait Implementations
Auto Trait Implementations
impl<W> RefUnwindSafe for WorldWithMessageBuffer<W> where
W: RefUnwindSafe,
<W as AppWorld>::Message: RefUnwindSafe,
impl<W> UnwindSafe for WorldWithMessageBuffer<W> where
W: UnwindSafe,
<W as AppWorld>::Message: UnwindSafe,