Module vm_superio::serial
source · [−]Expand description
Provides emulation for Linux serial console.
This is done by emulating an UART serial port.
Structs
Provides a no-op implementation of SerialEvents
which can be used in situations that
do not require logging or otherwise doing anything in response to the events defined
as part of SerialEvents
.
The serial console emulation is done by emulating a serial COM port.
The state of the Serial device.
Enums
Errors encountered while handling serial console operations.
Traits
Defines a series of callbacks that are invoked in response to the occurrence of specific events as part of the serial emulation logic (for example, when the driver reads data). The methods below can be implemented by a backend that keeps track of such events by incrementing metrics, logging messages, or any other action.