Expand description
A transport-agnostic library for implementing a vsock bridge over a usb bulk device.
Structs§
- Header
- The packet header for a vsock packet passed over the usb vsock link. Each usb packet can contain one or more packets, each of which must start with a valid header and correct payload length.
- Packet
- A typed reference to the contents of a packet in a buffer.
- Packet
Builder - Builds an aggregate usb packet out of vsock packets and gives readiness notifications when there is room to add another packet or data available to send.
- Packet
Mut - A typed mutable reference to the contents of a packet in a buffer.
- Packet
Stream - Reads a sequence of vsock packets from a given usb packet buffer
- Packet
TooBig Error - the size of the packet would have been too large even if the buffer was empty
- Space
Available Future - The future implementation for
PacketBuilder::wait_for_space
- UsbPacket
Future - The future implementation for
PacketBuilder::wait_for_usb_packet
Enums§
- Packet
Type - The serializable enumeration of packet types that can be used over a usb vsock link. These
roughly correspond to the state machine described by the
fuchsia.hardware.vsock
fidl library.