Struct android_looper::AcquiredLooper [] [src]

pub struct AcquiredLooper {
    // some fields omitted
}

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.

Methods

impl AcquiredLooper

fn from_ref(looper: LooperRef) -> AcquiredLooper

Acquire looper to prevent its deletion until this object is dropped.

Trait Implementations

impl Drop for AcquiredLooper

fn drop(&mut self)