pub struct TdispHostDeviceTargetEmulator { /* private fields */ }Expand description
An emulator which runs the TDISP state machine for a synthetic device.
Implementations§
Source§impl TdispHostDeviceTargetEmulator
impl TdispHostDeviceTargetEmulator
Sourcepub fn new(
host_interface: Arc<Mutex<dyn TdispHostDeviceInterface>>,
debug_device_id: &str,
) -> Self
pub fn new( host_interface: Arc<Mutex<dyn TdispHostDeviceInterface>>, debug_device_id: &str, ) -> Self
Create a new emulator which runs the TDISP state machine for a synthetic device.
Sourcepub fn set_debug_device_id(&mut self, debug_device_id: &str)
pub fn set_debug_device_id(&mut self, debug_device_id: &str)
Set the debug device ID string.
Trait Implementations§
Source§impl TdispHostDeviceTarget for TdispHostDeviceTargetEmulator
impl TdispHostDeviceTarget for TdispHostDeviceTargetEmulator
Source§fn tdisp_handle_guest_command(
&mut self,
command: GuestToHostCommand,
) -> Result<GuestToHostResponse>
fn tdisp_handle_guest_command( &mut self, command: GuestToHostCommand, ) -> Result<GuestToHostResponse>
Main entry point for handling a guest command sent to the host. Dispatches relevant trait interface methods to handle the command. Formats and returns a response packet.
Auto Trait Implementations§
impl Freeze for TdispHostDeviceTargetEmulator
impl !RefUnwindSafe for TdispHostDeviceTargetEmulator
impl Send for TdispHostDeviceTargetEmulator
impl Sync for TdispHostDeviceTargetEmulator
impl Unpin for TdispHostDeviceTargetEmulator
impl !UnwindSafe for TdispHostDeviceTargetEmulator
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