Trait Interface

Source
pub trait Interface: Send + Sync {
    // Provided methods
    fn as_binder(&self) -> SIBinder { ... }
    fn dump(&self, _writer: &mut dyn Write, _args: &[String]) -> Result<()> { ... }
}
Expand description

Super-trait for Binder interfaces.

This trait allows conversion of a Binder interface trait object into an IBinder object for IPC calls. All Binder remotable interface (i.e. AIDL interfaces) must implement this trait.

This is equivalent IInterface in C++.

Provided Methods§

Source

fn as_binder(&self) -> SIBinder

Convert this binder object into a generic SIBinder reference.

Source

fn dump(&self, _writer: &mut dyn Write, _args: &[String]) -> Result<()>

Dump transaction handler for this Binder object.

This handler is a no-op by default and should be implemented for each Binder service struct that wishes to respond to dump transactions.

Implementors§