pub trait FromIBinder: Interface {
// Required method
fn try_from(ibinder: SIBinder) -> Result<Strong<Self>>;
}Expand description
Trait for converting a generic Binder object into a specific Binder
§Example
For Binder interface IFoo, the following implementation should be made:
impl FromIBinder for dyn IFoo {
fn try_from(ibinder: SIBinder) -> Result<Strong<Self>> {
// ...
}
}Required Methods§
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.