Module buffers

Module buffers 

Source

Structs§

ControlMsg
IovecsRef
Provides access to a slice of iovecs while retaining some reference.
Message
A Message represents a typed segment of bytes within a MessageQueue.
MessageQueue
A MessageQueue stores a FIFO sequence of messages.
MessageReadInfo
UserBuffersInputBuffer
An InputBuffer that read data from user space memory through a TaskMemoryAccessor.
UserBuffersOutputBuffer
An OutputBuffer that write data to user space memory through a TaskMemoryAccessor.
VecInputBuffer
An InputBuffer that read data from an internal buffer.
VecOutputBuffer
An OutputBuffer that write data to an internal buffer.

Enums§

AncillaryData
AncillaryData converts a cmsghdr into a representation suitable for passing around inside of starnix. In AF_UNIX/SCM_RIGHTS, for example, the file descrpitors will be turned into FileHandles that can be sent to other tasks.
PipeMessageData
UnixControlData
A control message for a Unix domain socket.

Traits§

Buffer
A buffer.
InputBuffer
The InputBuffer allows for reading bytes from a buffer. A single InputBuffer will only read up to MAX_RW_COUNT bytes which is the maximum size of a single operation.
InputBufferExt
Iovec
MessageData
Stores an arbitrary sequence of bytes.
OutputBuffer
The OutputBuffer allows for writing bytes to a buffer. A single OutputBuffer will only write up to MAX_RW_COUNT bytes which is the maximum size of a single operation.

Functions§

with_iovec_segments
Attempts to perform some I/O with the iovec segments of Buffer.

Type Aliases§

InputBufferCallback
The callback for InputBuffer::peek_each and InputBuffer::read_each. The callback is passed the buffers to write to in order, and must return for each, how many bytes has been read.
OutputBufferCallback
The callback for OutputBuffer::write_each. The callback is passed the buffers to write to in order, and must return for each, how many bytes has been written.
PeekBufferSegmentsCallback
UcredPtr