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 config(&mut self) -> &mut TestingConfig
pub fn config(&mut self) -> &mut TestingConfig
Get a mutable reference to 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
pub fn focus_id(&self) -> Option<AccessibilityId>
Auto Trait Implementations§
impl !RefUnwindSafe for TestingHandler
impl !Send for TestingHandler
impl !Sync for TestingHandler
impl Unpin for TestingHandler
impl !UnwindSafe for TestingHandler
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