pub trait Interface: Send + Sync {
// Provided methods
fn as_binder(&self) -> SIBinder { ... }
fn dump(&self, _writer: &mut dyn Write, _args: &[String]) -> Result<()> { ... }
}Expand description
Base trait for all binder interfaces.
This trait allows conversion of a binder interface trait object into an IBinder object for IPC calls. All binder remotable interfaces (i.e., AIDL interfaces) must implement this trait to participate in binder IPC.
Equivalent to IInterface in Android’s C++ binder implementation.