binder::binder_impl

Trait Serialize

Source
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§

Source

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Serialize this instance into the given crate::parcel::Parcel.

Implementations on Foreign Types§

Source§

impl Serialize for bool

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for f32

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for f64

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for i8

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for i16

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for i32

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for i64

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for str

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for u8

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for u16

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for u32

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for u64

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl Serialize for String

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl<T: Serialize + ?Sized> Serialize for &T

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl<T: Serialize> Serialize for Box<T>

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl<T: SerializeArray> Serialize for [T]

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl<T: SerializeArray> Serialize for Vec<T>

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl<T: SerializeArray, const N: usize> Serialize for [T; N]

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Source§

impl<T: SerializeOption> Serialize for Option<T>

Source§

fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>

Implementors§