pub struct NullTdispHostInterface {}Expand description
Implements the host side of the TDISP interface for the mock NullDevice.
Trait Implementations§
Source§impl TdispHostDeviceInterface for NullTdispHostInterface
impl TdispHostDeviceInterface for NullTdispHostInterface
Source§fn tdisp_negotiate_protocol(
&mut self,
_requested_guest_protocol: TdispGuestProtocolType,
) -> Result<TdispDeviceInterfaceInfo>
fn tdisp_negotiate_protocol( &mut self, _requested_guest_protocol: TdispGuestProtocolType, ) -> Result<TdispDeviceInterfaceInfo>
Request versioning and protocol negotiation from the host.
Source§fn tdisp_bind_device(&mut self) -> Result<()>
fn tdisp_bind_device(&mut self) -> Result<()>
Bind a tdi device to the current partition. Transitions device to the Locked
state from Unlocked.
Source§fn tdisp_start_device(&mut self) -> Result<()>
fn tdisp_start_device(&mut self) -> Result<()>
Start a bound device by transitioning it to the Run state from the Locked state.
This allows attestation and resources to be accepted into the guest context.
Source§fn tdisp_unbind_device(&mut self) -> Result<()>
fn tdisp_unbind_device(&mut self) -> Result<()>
Unbind a tdi device from the current partition.
Source§fn tdisp_get_device_report(
&mut self,
_report_type: TdispReportType,
) -> Result<Vec<u8>>
fn tdisp_get_device_report( &mut self, _report_type: TdispReportType, ) -> Result<Vec<u8>>
Get a device interface report for the device.
Auto Trait Implementations§
impl Freeze for NullTdispHostInterface
impl RefUnwindSafe for NullTdispHostInterface
impl Send for NullTdispHostInterface
impl Sync for NullTdispHostInterface
impl Unpin for NullTdispHostInterface
impl UnwindSafe for NullTdispHostInterface
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