Module block

Source

StructsΒ§

Block πŸ”’
A block in a linked list.
BlockHeader πŸ”’
Extra fields for a Block<T>.
Values πŸ”’

EnumsΒ§

Read πŸ”’

ConstantsΒ§

BLOCK_MASK πŸ”’
Masks an index to get the block identifier.
READY_MASK πŸ”’
Mask covering all bits used to track slot readiness.
RELEASED πŸ”’
Flag tracking that a block has gone through the sender’s release routine.
SLOT_MASK πŸ”’
Masks an index to get the value offset in a block.
TX_CLOSED πŸ”’
Flag tracking all senders dropped.

FunctionsΒ§

is_ready πŸ”’
Returns true if the specified slot has a value ready to be consumed.
is_tx_closed πŸ”’
Returns true if the closed flag has been set.
offset πŸ”’
Returns the offset into the block referenced by slot_index.
start_index πŸ”’
Returns the index of the first slot in the block referenced by slot_index.