Skip to main content

QueueMode

Trait QueueMode 

Source
pub trait QueueMode<N: QueueSpec>:
    Send
    + Sync
    + 'static {
    type Inner;

    const STREAM_ROWS: usize;
    const HAS_PAYLOAD_ROW: bool;
}
Expand description

Selects the storage representation for a QueueSpec.

Required Associated Constants§

Source

const STREAM_ROWS: usize

Number of physical queue rows one stream emission will materialize.

Source

const HAS_PAYLOAD_ROW: bool

Whether the queue owns a distinct payload collection as well as its header collection.

Required Associated Types§

Source

type Inner

Crate-private storage owned by the opaque queue handle.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<N> QueueMode<N> for FixedQueueMode
where N: QueueSpec, N::Payload: GetType,

Source§

const STREAM_ROWS: usize = 1

Source§

const HAS_PAYLOAD_ROW: bool = false

Source§

type Inner = FixedQueueInner<N>

Source§

impl<N> QueueMode<N> for VarQueueMode
where N: QueueSpec, N::Payload: GetType,

Available on crate features rapira-codec and var-collections only.
Source§

const STREAM_ROWS: usize = 2

Source§

const HAS_PAYLOAD_ROW: bool = true

Source§

type Inner = VarQueueInner<N>