GeezerVison is showing docs.rs — RingMultiplexer in ringfire::multiplexer - Rust pub struct RingMultiplexer<T: Copy + LayoutSignature + 'static> { /* private fields */ }
Expand descriptionSynchronous channel multiplexer across multiple RingConsumer<T> instances.
Implementations§
Creates a new empty RingMultiplexer.
Adds an existing RingConsumer to the multiplexer. Returns its channel index.
Adds an existing RingConsumer with a human-readable channel name.
Attaches to a ring buffer at path and adds it to the multiplexer.
Attaches to a ring buffer at path with a custom channel name.
Total number of multiplexed ring buffer channels.
Returns true if no channels have been added yet.
Name of the channel at index idx.
Reference to the underlying consumer at index idx.
Mutable reference to the underlying consumer at index idx.
Polls all channels using fair Round-Robin scheduling.
Returns Some((channel_index, message)) from the next available channel,
or None if all channels are currently empty.
Polls channels strictly in priority order (0, 1, 2, …, N-1).
Favors higher-priority channels (e.g. primary liquidity, risk cancels).
Drains up to max_items across all channels in a single batch.
Trait Implementations§
Returns the “default value” for a type. Read moreAuto Trait Implementations§Blanket Implementations§
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion. |