pub enum TpmDeviceRequest {
GetDeviceId {
responder: TpmDeviceGetDeviceIdResponder,
},
ExecuteVendorCommand {
command_code: u16,
data: Vec<u8>,
responder: TpmDeviceExecuteVendorCommandResponder,
},
ExecuteCommand {
data: Vec<u8>,
responder: TpmDeviceExecuteCommandResponder,
},
}
Variants§
GetDeviceId
Get the TPM’s device ID, vendor ID, and revision ID.
Fields
§
responder: TpmDeviceGetDeviceIdResponder
ExecuteVendorCommand
Execute a vendor command. This method will construct a header for the TPM command from the command_code. The data section should just contain the body of the command and not the header. Returns ZX_ERR_BUFFER_TOO_SMALL if the TPM responded with data that wouldn’t fit in the response buffer.
ExecuteCommand
Execute a complete command. This method expects a complete command passed in data including any header required. Returns ZX_ERR_BUFFER_TOO_SMALL if the TPM responded with data that wouldn’t fit in the response buffer.
Implementations§
Source§impl TpmDeviceRequest
impl TpmDeviceRequest
pub fn into_get_device_id(self) -> Option<TpmDeviceGetDeviceIdResponder>
pub fn into_execute_vendor_command( self, ) -> Option<(u16, Vec<u8>, TpmDeviceExecuteVendorCommandResponder)>
pub fn into_execute_command( self, ) -> Option<(Vec<u8>, TpmDeviceExecuteCommandResponder)>
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 TpmDeviceRequest
impl !RefUnwindSafe for TpmDeviceRequest
impl Send for TpmDeviceRequest
impl Sync for TpmDeviceRequest
impl Unpin for TpmDeviceRequest
impl !UnwindSafe for TpmDeviceRequest
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