Module api

Source
Expand description

Defines read and write operations for a kekbit channel.

Enums§

ChannelError
Channel Access errors
InvalidPosition
Errors caused by failed move_to operation.
ReadError
Read operation errors
WriteError
Write operation errors

Traits§

Reader
The Reader trait allows reading bytes from a kekbit channel. Implementers of this trait are called ‘kekbit readers’. Usually a reader is bound to a given channel, and it is expected that multiple readers will safely access the same channel simultaneous.
Writer
The Writer trait allows writing chunk of bytes as records into a kekbit channel. Implementers of this trait are called ‘kekbit writers’. Usually a writer is bound to a given channel, and it is expected that there is only one writer which directly writes into the channel, however multiple writers may cooperate during the writing process. For any given channel a DataFormat must be specified.