pub enum ApplicationRequest {
OpenSession2 {
parameter_set: Vec<Parameter>,
responder: ApplicationOpenSession2Responder,
},
InvokeCommand {
session_id: u32,
command_id: u32,
parameter_set: Vec<Parameter>,
responder: ApplicationInvokeCommandResponder,
},
CloseSession {
session_id: u32,
responder: ApplicationCloseSessionResponder,
},
}
Expand description
Represents a connection to an application running in the TEE.
Variants§
OpenSession2
Initiates a communication session with the trusted application.
InvokeCommand
Requests the trusted application perform the provided command. The command is unique to the trusted application.
Fields
§
responder: ApplicationInvokeCommandResponder
CloseSession
Closes an established session.
Implementations§
Source§impl ApplicationRequest
impl ApplicationRequest
pub fn into_open_session2( self, ) -> Option<(Vec<Parameter>, ApplicationOpenSession2Responder)>
pub fn into_invoke_command( self, ) -> Option<(u32, u32, Vec<Parameter>, ApplicationInvokeCommandResponder)>
pub fn into_close_session( self, ) -> Option<(u32, ApplicationCloseSessionResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApplicationRequest
impl !RefUnwindSafe for ApplicationRequest
impl Send for ApplicationRequest
impl Sync for ApplicationRequest
impl Unpin for ApplicationRequest
impl !UnwindSafe for ApplicationRequest
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