Module message

Source
Expand description

Message encoding used for the on-disk format for the log.

Structs§

Message
Messages contain finite-sized binary values with an offset from the beginning of the log.
MessageBuf
Mutable message buffer.
MessageIter
Iterator for Message within a MessageSet.
MessageMut
Iterator for Messages allowing mutation of offsets
MessageMutIter
Iterator for Message within a MessageSet.

Enums§

MessageError
Error for the message encoding or decoding.
MessageSerializationError

Constants§

HEADER_SIZE

Traits§

MessageSet
Serialized log message set.
MessageSetMut
Message set that can be mutated.

Functions§

serialize
Serializes a new message into a buffer
set_offsets
Mutates the buffer with starting offset