pub trait Serialize {
// Required method
fn serialize(
&self,
parcel: &mut BorrowedParcel<'_>,
) -> Result<(), StatusCode>;
}
Expand description
A struct whose instances can be written to a crate::parcel::Parcel
.
Required Methods§
Sourcefn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>
fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>
Serialize this instance into the given crate::parcel::Parcel
.