Struct android_activity::AndroidAppWaker
source · pub struct AndroidAppWaker { /* private fields */ }Expand description
A means to wake up the main thread while it is blocked waiting for I/O
Implementations§
source§impl AndroidAppWaker
impl AndroidAppWaker
sourcepub fn wake(&self)
pub fn wake(&self)
Interrupts the main thread if it is blocked within AndroidApp::poll_events()
If AndroidApp::poll_events() is interrupted it will invoke the poll
callback with a PollEvent::Wake event.
Trait Implementations§
source§impl Clone for AndroidAppWaker
impl Clone for AndroidAppWaker
source§fn clone(&self) -> AndroidAppWaker
fn clone(&self) -> AndroidAppWaker
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more