Struct fidl_fuchsia_tee::ApplicationProxy
source · pub struct ApplicationProxy { /* private fields */ }
Implementations§
source§impl ApplicationProxy
impl ApplicationProxy
sourcepub fn take_event_stream(&self) -> ApplicationEventStream
pub fn take_event_stream(&self) -> ApplicationEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn open_session2(
&self,
parameter_set: Vec<Parameter>
) -> QueryResponseFut<(u32, OpResult)>
pub fn open_session2( &self, parameter_set: Vec<Parameter> ) -> QueryResponseFut<(u32, OpResult)>
Initiates a communication session with the trusted application.
sourcepub fn invoke_command(
&self,
session_id: u32,
command_id: u32,
parameter_set: Vec<Parameter>
) -> QueryResponseFut<OpResult>
pub fn invoke_command( &self, session_id: u32, command_id: u32, parameter_set: Vec<Parameter> ) -> QueryResponseFut<OpResult>
Requests the trusted application perform the provided command. The command is unique to the trusted application.
sourcepub fn close_session(&self, session_id: u32) -> QueryResponseFut<()>
pub fn close_session(&self, session_id: u32) -> QueryResponseFut<()>
Closes an established session.
Trait Implementations§
source§impl ApplicationProxyInterface for ApplicationProxy
impl ApplicationProxyInterface for ApplicationProxy
type OpenSession2ResponseFut = QueryResponseFut<(u32, OpResult)>
fn open_session2( &self, parameter_set: Vec<Parameter> ) -> Self::OpenSession2ResponseFut
type InvokeCommandResponseFut = QueryResponseFut<OpResult>
fn invoke_command( &self, session_id: u32, command_id: u32, parameter_set: Vec<Parameter> ) -> Self::InvokeCommandResponseFut
type CloseSessionResponseFut = QueryResponseFut<()>
fn close_session(&self, session_id: u32) -> Self::CloseSessionResponseFut
source§impl Clone for ApplicationProxy
impl Clone for ApplicationProxy
source§fn clone(&self) -> ApplicationProxy
fn clone(&self) -> ApplicationProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApplicationProxy
impl Debug for ApplicationProxy
source§impl Proxy for ApplicationProxy
impl Proxy for ApplicationProxy
§type Protocol = ApplicationMarker
type Protocol = ApplicationMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ApplicationProxy
impl Send for ApplicationProxy
impl Sync for ApplicationProxy
impl Unpin for ApplicationProxy
impl !UnwindSafe for ApplicationProxy
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