pub struct Binder { /* private fields */ }
Expand description
Structure representing an open Binder interface.
Implementations§
Source§impl Binder
impl Binder
pub fn new() -> Self
Sourcepub fn enter_looper(&self)
pub fn enter_looper(&self)
Tell binder that we are entering the looper
Sourcepub fn add_ref(&mut self, handle: i32)
pub fn add_ref(&mut self, handle: i32)
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.
Sourcepub fn dec_ref(&mut self, handle: i32)
pub fn dec_ref(&mut self, handle: i32)
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.
Sourcepub fn acquire(&mut self, handle: i32)
pub fn acquire(&mut self, handle: i32)
Acquire the server side resource for the given handle. Note that this request is queued and only actually perfomed with the next outgoing transaction.
Sourcepub fn release(&mut self, handle: i32)
pub fn release(&mut self, handle: i32)
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)
pub fn reply( &mut self, data: &mut Parcel, flags: TransactionFlags, ) -> (Option<BinderTransactionData>, Parcel)
pub fn do_write_read( &mut self, parcel_out: &mut Parcel, ) -> (Option<BinderTransactionData>, Parcel)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Binder
impl RefUnwindSafe for Binder
impl !Send for Binder
impl !Sync for Binder
impl Unpin for Binder
impl UnwindSafe for Binder
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