Enum android_looper_sys::LooperPrepareOpts [] [src]

#[repr(isize)]
pub enum LooperPrepareOpts { AllowNonCallbacks, None, }

Option for for ALooper_prepare().

Variants

ALLOW_NON_CALLBACKS

Option for ALooper_prepare: this looper will accept calls to ALooper_addFd() that do not have a callback (that is provide NULL for the callback). In this case the caller of ALooper_pollOnce() or ALooper_pollAll() MUST check the return from these functions to discover when data is available on such fds and process it.

0 value, allow only callbacks

Trait Implementations

impl Clone for LooperPrepareOpts
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for LooperPrepareOpts
[src]