Enum android_looper::LooperPrepareOpts [] [src]

pub enum LooperPrepareOpts {
    AllowNonCallbacks,
    None,
}

Option for for ALooper_prepare().

Variants

AllowNonCallbacks

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.

None

0 value, allow only callbacks

Trait Implementations

Derived Implementations

impl Copy for LooperPrepareOpts

impl Clone for LooperPrepareOpts

fn clone(&self) -> LooperPrepareOpts

fn clone_from(&mut self, source: &Self)1.0.0