Module tokio::sync::mpsc::block

source Β·

Structs§

Enums§

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.