pub struct AcquiredLooper { /* private fields */ }Expand description
RAII acquired looper wrapper.
This prevents the object from being deleted until this wrapper is dropped. This is only needed to safely hand an ALooper from one thread to another.
Implementations§
Source§impl AcquiredLooper
impl AcquiredLooper
Sourcepub fn from_ref(looper: LooperRef) -> AcquiredLooper
pub fn from_ref(looper: LooperRef) -> AcquiredLooper
Acquire looper to prevent its deletion until this object is dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AcquiredLooper
impl RefUnwindSafe for AcquiredLooper
impl !Send for AcquiredLooper
impl !Sync for AcquiredLooper
impl Unpin for AcquiredLooper
impl UnwindSafe for AcquiredLooper
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