Module queue

Source
Expand description

This module implements the Queue type, which provides an abstraction over a VmBus channel.

Structs§

BatchRead
An asynchronous batch read operation.
CompletionPacket
A completion packet.
DataPacket
An incoming data packet.
Error
A queue error.
OutgoingPacket
An outgoing packet.
PacketRef
A reference to a single packet that has not been read out of the ring yet.
Queue
An abstraction over an open VmBus channel that provides methods to read and write packets from the ring, as well as poll the ring for readiness.
Read
An asynchronous read operation.
ReadBatch
An incoming packet batch reader.
ReadBatchIter
The packet iterator for ReadBatch.
ReadHalf
The reader for the incoming ring buffer of a Queue.
Write
An asynchronous packet write operation.
WriteBatch
A batch writer, returned by WriteHalf::batched.
WriteHalf
The writer for the outgoing ring buffer of a Queue.

Enums§

ExternalDataError
An error returned by read_external_ranges
IncomingPacket
An incoming packet.
TryReadError
An error returned by try_read* methods.
TryWriteError
An error returned by try_write* methods.

Functions§

connected_queues
Returns a pair of connected queues. Useful for testing.