pub trait ParcelableMetadata {
// Required method
fn get_descriptor() -> &'static str;
// Provided method
fn get_stability(&self) -> Stability { ... }
}Expand description
Metadata that ParcelableHolder needs for all parcelables.
The compiler auto-generates implementations of this trait for AIDL parcelables.
Required Methods§
Sourcefn get_descriptor() -> &'static str
fn get_descriptor() -> &'static str
The Binder parcelable descriptor string.
This string is a unique identifier for a Binder parcelable.
Provided Methods§
Sourcefn get_stability(&self) -> Stability
fn get_stability(&self) -> Stability
The Binder parcelable stability.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".