pub trait Proxy: Sized + Interface {
// Required methods
fn get_descriptor() -> &'static str;
fn from_binder(binder: SpIBinder) -> Result<Self, StatusCode>;
}
Expand description
Generic interface to remote binder objects.
Corresponds to the C++ BpInterface
class.
Required Methods§
Sourcefn get_descriptor() -> &'static str
fn get_descriptor() -> &'static str
The Binder interface descriptor string.
This string is a unique identifier for a Binder interface, and should be the same between all implementations of that interface.
Sourcefn from_binder(binder: SpIBinder) -> Result<Self, StatusCode>
fn from_binder(binder: SpIBinder) -> Result<Self, StatusCode>
Create a new interface from the given proxy, if it matches the expected type of this interface.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.