Struct binder_rust::Binder[][src]

pub struct Binder { /* fields omitted */ }

Structure representing an open Binder interface.

Implementations

impl Binder[src]

pub fn new() -> Self[src]

pub fn enter_looper(&self)[src]

Tell binder that we are entering the looper

pub fn add_ref(&mut self, handle: i32)[src]

Increment the server side reference count of the given handle. Note that this request is queued and only actually perfomed with the next outgoing transaction.

pub fn dec_ref(&mut self, handle: i32)[src]

Decrement the server side reference count of the given handle. Note that this request is queued and only actually perfomed with the next outgoing transaction.

pub fn acquire(&mut self, handle: i32)[src]

Acquire the server side resource for the given handle. Note that this request is queued and only actually perfomed with the next outgoing transaction.

pub fn release(&mut self, handle: i32)[src]

Release the server side resource for the given handle. Note that this request is queued and only actually perfomed with the next outgoing transaction.

pub fn transact(
    &mut self,
    handle: i32,
    code: u32,
    flags: TransactionFlags,
    data: &mut Parcel
) -> (Option<BinderTransactionData>, Parcel)
[src]

pub fn reply(
    &mut self,
    data: &mut Parcel,
    flags: TransactionFlags
) -> (Option<BinderTransactionData>, Parcel)
[src]

pub fn do_write_read(
    &mut self,
    parcel_out: &mut Parcel
) -> (Option<BinderTransactionData>, Parcel)
[src]

Trait Implementations

impl Drop for Binder[src]

Implement Drop for Binder, so that we can clean up resources

Auto Trait Implementations

impl RefUnwindSafe for Binder

impl !Send for Binder

impl !Sync for Binder

impl Unpin for Binder

impl UnwindSafe for Binder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.