Enum TdispReportType
#[repr(i32)]pub enum TdispReportType {
Invalid = 0,
GuestDeviceId = 1,
InterfaceReport = 2,
CertificateChain = 3,
Measurements = 4,
IsRegistered = 5,
}Expand description
Represents a type of report that can be requested from the TDI (VF).
Variants§
Invalid = 0
Invalid report type. All usages of this report type should be treated as an error.
GuestDeviceId = 1
Guest requests the guest device ID of the TDI.
InterfaceReport = 2
Guest requests the interface report of the TDI.
CertificateChain = 3
Guest requests the certificate chain of the physical device.
Measurements = 4
Guest requests the measurements of the physical device.
IsRegistered = 5
Guest requests whether the physical device is registered.
Implementations§
§impl TdispReportType
impl TdispReportType
§impl TdispReportType
impl TdispReportType
pub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn from_str_name(value: &str) -> Option<TdispReportType>
pub fn from_str_name(value: &str) -> Option<TdispReportType>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for TdispReportType
impl Clone for TdispReportType
§fn clone(&self) -> TdispReportType
fn clone(&self) -> TdispReportType
Returns a duplicate 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 more§impl Debug for TdispReportType
impl Debug for TdispReportType
§impl Default for TdispReportType
impl Default for TdispReportType
§fn default() -> TdispReportType
fn default() -> TdispReportType
Returns the “default value” for a type. Read more
§impl Hash for TdispReportType
impl Hash for TdispReportType
§impl Ord for TdispReportType
impl Ord for TdispReportType
§impl PartialEq for TdispReportType
impl PartialEq for TdispReportType
§impl PartialOrd for TdispReportType
impl PartialOrd for TdispReportType
impl Copy for TdispReportType
impl Eq for TdispReportType
impl StructuralPartialEq for TdispReportType
Auto Trait Implementations§
impl Freeze for TdispReportType
impl RefUnwindSafe for TdispReportType
impl Send for TdispReportType
impl Sync for TdispReportType
impl Unpin for TdispReportType
impl UnwindSafe for TdispReportType
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