aboutsummaryrefslogtreecommitdiff
path: root/tests/golden_output/aidl-test-versioned-interface-V1-rust-source/gen/android/aidl/versioned/tests/Foo.rs
blob: 30926b7c04d270fea2bdf780cc4cafb92c7da5b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#![forbid(unsafe_code)]
#![rustfmt::skip]
#[derive(Debug)]
pub struct Foo {
}
impl Default for Foo {
  fn default() -> Self {
    Self {
    }
  }
}
impl binder::Parcelable for Foo {
  fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> {
    parcel.sized_write(|subparcel| {
      Ok(())
    })
  }
  fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> {
    parcel.sized_read(|subparcel| {
      Ok(())
    })
  }
}
binder::impl_serialize_for_parcelable!(Foo);
binder::impl_deserialize_for_parcelable!(Foo);
impl binder::binder_impl::ParcelableMetadata for Foo {
  fn get_descriptor() -> &'static str { "android.aidl.versioned.tests.Foo" }
}
pub(crate) mod mangled {
 pub use super::Foo as _7_android_4_aidl_9_versioned_5_tests_3_Foo;
}