Crate usb_vsock

Source
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.
PacketBuilder
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.
PacketMut
A typed mutable reference to the contents of a packet in a buffer.
PacketStream
Reads a sequence of vsock packets from a given usb packet buffer
PacketTooBigError
the size of the packet would have been too large even if the buffer was empty
SpaceAvailableFuture
The future implementation for PacketBuilder::wait_for_space
UsbPacketFuture
The future implementation for PacketBuilder::wait_for_usb_packet

Enums§

PacketType
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.