pub struct OpResult {
pub returnCode: i64,
pub returnOrigin: _7_android_6_system_12_microfuchsia_11_trusted_app_12_ReturnOrigin,
pub params: _7_android_6_system_12_microfuchsia_11_trusted_app_12_ParameterSet,
}
Fields§
§returnCode: i64
§returnOrigin: _7_android_6_system_12_microfuchsia_11_trusted_app_12_ReturnOrigin
§params: _7_android_6_system_12_microfuchsia_11_trusted_app_12_ParameterSet
Trait Implementations§
Source§impl Deserialize for OpResult
impl Deserialize for OpResult
Source§type UninitType = OpResult
type UninitType = OpResult
Type for the uninitialized value of this type. Will be either
Self
if the type implements Default
, Option<Self>
otherwise.Source§fn uninit() -> Self::UninitType
fn uninit() -> Self::UninitType
Return an uninitialized or default-initialized value for this type.
Source§fn from_init(value: Self) -> Self::UninitType
fn from_init(value: Self) -> Self::UninitType
Convert an initialized value of type
Self
into Self::UninitType
.Source§fn deserialize(parcel: &BorrowedParcel<'_>) -> Result<Self, StatusCode>
fn deserialize(parcel: &BorrowedParcel<'_>) -> Result<Self, StatusCode>
Deserialize an instance from the given
crate::parcel::Parcel
.Source§fn deserialize_from(
&mut self,
parcel: &BorrowedParcel<'_>,
) -> Result<(), StatusCode>
fn deserialize_from( &mut self, parcel: &BorrowedParcel<'_>, ) -> Result<(), StatusCode>
Deserialize an instance from the given
crate::parcel::Parcel
onto the
current object. This operation will overwrite the old value
partially or completely, depending on how much data is available.Source§const ASSERT_UNINIT_SIZE_AND_ALIGNMENT: bool = _
const ASSERT_UNINIT_SIZE_AND_ALIGNMENT: bool = _
Assert at compile-time that
Self
and Self::UninitType
have the same
size and alignment. This will either fail to compile or evaluate to true
.
The only two macros that work here are panic!
and assert!
, so we cannot
use assert_eq!
.Source§impl DeserializeArray for OpResult
impl DeserializeArray for OpResult
Source§fn deserialize_array(
parcel: &BorrowedParcel<'_>,
) -> Result<Option<Vec<Self>>, android_c_interface_StatusCode>
fn deserialize_array( parcel: &BorrowedParcel<'_>, ) -> Result<Option<Vec<Self>>, android_c_interface_StatusCode>
Deserialize an array of type from the given parcel.
Source§impl DeserializeOption for OpResult
impl DeserializeOption for OpResult
Source§fn deserialize_option(
parcel: &BorrowedParcel<'_>,
) -> Result<Option<Self>, StatusCode>
fn deserialize_option( parcel: &BorrowedParcel<'_>, ) -> Result<Option<Self>, StatusCode>
Deserialize an Option of this type from the given parcel.
Source§fn deserialize_option_from(
this: &mut Option<Self>,
parcel: &BorrowedParcel<'_>,
) -> Result<(), StatusCode>
fn deserialize_option_from( this: &mut Option<Self>, parcel: &BorrowedParcel<'_>, ) -> Result<(), StatusCode>
Deserialize an Option of this type from the given parcel onto the
current object. This operation will overwrite the current value
partially or completely, depending on how much data is available.
Source§impl Parcelable for OpResult
impl Parcelable for OpResult
Source§fn write_to_parcel(
&self,
parcel: &mut BorrowedParcel<'_>,
) -> Result<(), StatusCode>
fn write_to_parcel( &self, parcel: &mut BorrowedParcel<'_>, ) -> Result<(), StatusCode>
Internal serialization function for parcelables. Read more
Source§fn read_from_parcel(
&mut self,
parcel: &BorrowedParcel<'_>,
) -> Result<(), StatusCode>
fn read_from_parcel( &mut self, parcel: &BorrowedParcel<'_>, ) -> Result<(), StatusCode>
Internal deserialization function for parcelables. Read more
Source§impl ParcelableMetadata for OpResult
impl ParcelableMetadata for OpResult
Source§fn get_descriptor() -> &'static str
fn get_descriptor() -> &'static str
The Binder parcelable descriptor string. Read more
Source§fn get_stability(&self) -> Stability
fn get_stability(&self) -> Stability
The Binder parcelable stability.
Source§impl Serialize for OpResult
impl Serialize for OpResult
Source§fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>
fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<(), StatusCode>
Serialize this instance into the given
crate::parcel::Parcel
.Source§impl SerializeArray for OpResult
impl SerializeArray for OpResult
Source§fn serialize_array(
slice: &[Self],
parcel: &mut BorrowedParcel<'_>,
) -> Result<(), android_c_interface_StatusCode>
fn serialize_array( slice: &[Self], parcel: &mut BorrowedParcel<'_>, ) -> Result<(), android_c_interface_StatusCode>
Serialize an array of this type into the given parcel.
Source§impl SerializeOption for OpResult
impl SerializeOption for OpResult
Source§fn serialize_option(
this: Option<&Self>,
parcel: &mut BorrowedParcel<'_>,
) -> Result<(), StatusCode>
fn serialize_option( this: Option<&Self>, parcel: &mut BorrowedParcel<'_>, ) -> Result<(), StatusCode>
Serialize an Option of this type into the given parcel.
Auto Trait Implementations§
impl Freeze for OpResult
impl RefUnwindSafe for OpResult
impl Send for OpResult
impl Sync for OpResult
impl Unpin for OpResult
impl UnwindSafe for OpResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.