Expand description
This module implements the Queue
type, which provides an abstraction over
a VmBus channel.
Structs§
- Batch
Read - An asynchronous batch read operation.
- Completion
Packet - A completion packet.
- Data
Packet - An incoming data packet.
- Error
- A queue error.
- Outgoing
Packet - An outgoing packet.
- Packet
Ref - 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.
- Read
Batch - An incoming packet batch reader.
- Read
Batch Iter - The packet iterator for
ReadBatch
. - Read
Half - The reader for the incoming ring buffer of a
Queue
. - Write
- An asynchronous packet write operation.
- Write
Batch - A batch writer, returned by
WriteHalf::batched
. - Write
Half - The writer for the outgoing ring buffer of a
Queue
.
Enums§
- External
Data Error - An error returned by
read_external_ranges
- Incoming
Packet - An incoming packet.
- TryRead
Error - An error returned by
try_read*
methods. - TryWrite
Error - An error returned by
try_write*
methods.
Functions§
- connected_
queues - Returns a pair of connected queues. Useful for testing.