Module virtio_drivers::device::socket
source · Expand description
Driver for VirtIO socket devices.
To use the driver, you should first create a VirtIOSocket instance with your VirtIO
transport, and then create a VsockConnectionManager wrapping it to keep track of
connections. If you want to manage connections yourself you can use the VirtIOSocket directly
for a lower-level interface.
See VsockConnectionManager for a usage example.
Structs
- Low-level driver for a VirtIO socket device.
- Socket address.
- A higher level interface for VirtIO socket (vsock) devices.
- An event received from a VirtIO socket device.
Enums
- The reason why a vsock connection was closed.
- The error type of VirtIO socket driver.
- Details of the type of an event received from a VirtIO socket.
Constants
- Well-known CID for the host.