#[repr(isize)]pub enum LooperPrepareOpts {
AllowNonCallbacks = 1,
None = 0,
}Expand description
Option for for ALooper_prepare().
Variants§
AllowNonCallbacks = 1
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
0 value, allow only callbacks
Trait Implementations§
Source§impl Clone for LooperPrepareOpts
impl Clone for LooperPrepareOpts
Source§fn clone(&self) -> LooperPrepareOpts
fn clone(&self) -> LooperPrepareOpts
Returns a duplicate 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 Copy for LooperPrepareOpts
Auto Trait Implementations§
impl Freeze for LooperPrepareOpts
impl RefUnwindSafe for LooperPrepareOpts
impl Send for LooperPrepareOpts
impl Sync for LooperPrepareOpts
impl Unpin for LooperPrepareOpts
impl UnwindSafe for LooperPrepareOpts
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