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 moreimpl Send for AndroidAppWaker
impl Sync for AndroidAppWaker
Auto Trait Implementations§
impl Freeze for AndroidAppWaker
impl RefUnwindSafe for AndroidAppWaker
impl Unpin for AndroidAppWaker
impl UnwindSafe for AndroidAppWaker
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