Struct freya_testing::TestingHandler
source · pub struct TestingHandler { /* private fields */ }
Expand description
Manages the lifecycle of your tests.
Implementations§
source§impl TestingHandler
impl TestingHandler
sourcepub fn set_config(&mut self, config: TestingConfig)
pub fn set_config(&mut self, config: TestingConfig)
Replace the current TestingConfig
.
sourcepub async fn wait_for_update(&mut self) -> (bool, bool)
pub async fn wait_for_update(&mut self) -> (bool, bool)
Wait and apply new changes
sourcepub fn wait_for_work(&mut self, size: Size2D)
pub fn wait_for_work(&mut self, size: Size2D)
Wait for layout and events to be processed
sourcepub fn push_event(&mut self, event: FreyaEvent)
pub fn push_event(&mut self, event: FreyaEvent)
Push an event to the events queue