pub struct BpTrustedApp { /* private fields */ }
Expand description
A binder Proxy
that holds an ITrustedApp
remote interface.
Trait Implementations§
Source§impl ITrustedApp for BpTrustedApp
impl ITrustedApp for BpTrustedApp
fn openSession( &self, _arg_params: &_7_android_6_system_12_microfuchsia_11_trusted_app_12_ParameterSet, _arg_result: &mut _7_android_6_system_12_microfuchsia_11_trusted_app_8_OpResult, ) -> Result<Strong<dyn _7_android_6_system_12_microfuchsia_11_trusted_app_18_ITrustedAppSession>>
fn get_descriptor() -> &'static strwhere
Self: Sized,
fn getDefaultImpl() -> ITrustedAppDefaultRefwhere
Self: Sized,
fn setDefaultImpl(d: ITrustedAppDefaultRef) -> ITrustedAppDefaultRefwhere
Self: Sized,
fn try_as_async_server<'a>( &'a self, ) -> Option<&'a (dyn ITrustedAppAsyncServer + Send + Sync)>
Source§impl<P: BinderAsyncPool> ITrustedAppAsync<P> for BpTrustedApp
impl<P: BinderAsyncPool> ITrustedAppAsync<P> for BpTrustedApp
fn openSession<'a>( &'a self, _arg_params: &'a _7_android_6_system_12_microfuchsia_11_trusted_app_12_ParameterSet, _arg_result: &'a mut _7_android_6_system_12_microfuchsia_11_trusted_app_8_OpResult, ) -> BoxFuture<'a, Result<Strong<dyn _7_android_6_system_12_microfuchsia_11_trusted_app_18_ITrustedAppSession>>>
fn get_descriptor() -> &'static strwhere
Self: Sized,
Source§impl Interface for BpTrustedApp
impl Interface for BpTrustedApp
Source§impl Proxy for BpTrustedAppwhere
BpTrustedApp: ITrustedApp,
impl Proxy for BpTrustedAppwhere
BpTrustedApp: ITrustedApp,
Source§fn get_descriptor() -> &'static str
fn get_descriptor() -> &'static str
The Binder interface descriptor string. Read more
Source§fn from_binder(binder: SpIBinder) -> Result<Self, StatusCode>
fn from_binder(binder: SpIBinder) -> Result<Self, StatusCode>
Create a new interface from the given proxy, if it matches the expected
type of this interface.
Auto Trait Implementations§
impl Freeze for BpTrustedApp
impl RefUnwindSafe for BpTrustedApp
impl Send for BpTrustedApp
impl Sync for BpTrustedApp
impl Unpin for BpTrustedApp
impl UnwindSafe for BpTrustedApp
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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IBinder for Twhere
T: AsNative<AIBinder>,
impl<T> IBinder for Twhere
T: AsNative<AIBinder>,
Source§fn link_to_death(
&mut self,
recipient: &mut DeathRecipient,
) -> Result<(), android_c_interface_StatusCode>
fn link_to_death( &mut self, recipient: &mut DeathRecipient, ) -> Result<(), android_c_interface_StatusCode>
Register the recipient for a notification if this binder
goes away. If this binder object unexpectedly goes away
(typically because its hosting process has been killed),
then the
DeathRecipient
’s callback will be called. Read moreSource§fn unlink_to_death(
&mut self,
recipient: &mut DeathRecipient,
) -> Result<(), android_c_interface_StatusCode>
fn unlink_to_death( &mut self, recipient: &mut DeathRecipient, ) -> Result<(), android_c_interface_StatusCode>
Remove a previously registered death notification.
The recipient will no longer be called if this object
dies.
Source§fn ping_binder(&mut self) -> Result<(), android_c_interface_StatusCode>
fn ping_binder(&mut self) -> Result<(), android_c_interface_StatusCode>
Send a ping transaction to this object
Source§impl<T> IBinderInternal for Twhere
T: AsNative<AIBinder>,
impl<T> IBinderInternal for Twhere
T: AsNative<AIBinder>,
Source§fn prepare_transact(&self) -> Result<Parcel, android_c_interface_StatusCode>
fn prepare_transact(&self) -> Result<Parcel, android_c_interface_StatusCode>
Create a Parcel that can be used with
submit_transact
.Source§fn submit_transact(
&self,
code: u32,
data: Parcel,
flags: u32,
) -> Result<Parcel, android_c_interface_StatusCode>
fn submit_transact( &self, code: u32, data: Parcel, flags: u32, ) -> Result<Parcel, android_c_interface_StatusCode>
Perform a generic operation with the object. Read more
Source§fn is_binder_alive(&self) -> bool
fn is_binder_alive(&self) -> bool
Is this object still alive?
Source§fn set_requesting_sid(&mut self, enable: bool)
fn set_requesting_sid(&mut self, enable: bool)
Indicate that the service intends to receive caller security contexts.
Source§fn dump<F>(
&mut self,
fp: &F,
args: &[&str],
) -> Result<(), android_c_interface_StatusCode>where
F: AsRawFd,
fn dump<F>(
&mut self,
fp: &F,
args: &[&str],
) -> Result<(), android_c_interface_StatusCode>where
F: AsRawFd,
Dump this object to the given file handle
Source§fn get_extension(
&mut self,
) -> Result<Option<SpIBinder>, android_c_interface_StatusCode>
fn get_extension( &mut self, ) -> Result<Option<SpIBinder>, android_c_interface_StatusCode>
Get a new interface that exposes additional extension functionality, if
available.