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
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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer