pub struct ThreadLooper { /* private fields */ }
Expand description

A thread-local native ALooper *. This promises that there is a looper associated with the current thread.

Implementations

Prepares a looper for the current thread and returns it

Returns the looper associated with the current thread, if any.

Polls the looper, blocking on processing an event.

Polls the looper, blocking on processing an event, but with a timeout. Give a timeout of 0 to make this non-blocking.

It panics if the timeout is larger than expressible as an i32 of milliseconds (roughly 25 days).

Repeatedly polls the looper, blocking on processing an event.

This function will never return Poll::Callback.

Repeatedly polls the looper, blocking on processing an event, but with a timeout. Give a timeout of 0 to make this non-blocking.

This function will never return Poll::Callback.

It panics if the timeout is larger than expressible as an i32 of milliseconds (roughly 25 days).

Returns a reference to the ForeignLooper that is associated with the current thread.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.