GeezerVison is showing docs.rs — RingConsumer in ringfire::spmc - Rust pub struct RingConsumer<T: Copy + 'static> { /* private fields */ }
Expand descriptionMulti-consumer ring buffer reader backed by shared memory (/dev/shm).
Implementations§
Returns a new RingConsumerBuilder for configuring attach options.
Attaches to an existing ring buffer, starting from the oldest available message.
Preserves standard replay behavior.
Attaches to an existing ring buffer, starting from the latest published message.
Skips historical messages to connect immediately to live market data.
Attaches to an existing ring buffer, resuming from the specified offset file.
If the offset file does not exist, starts from the latest published message.
Attaches to an existing shared memory ring buffer at path with custom builder options.
Attempts to read the next message with explicit status (Ok, Empty, or Lapped).
Attempts to read the next available message without blocking.
Returns Some(T) if a new message was published (even if lapped), or None if caught up.
Reads up to buf.len() available messages into the provided slice.
Returns the number of messages read.
Reads the next message, blocking according to the provided WaitStrategy.
Jumps cursor directly to the latest published sequence, skipping any backlog.
Returns the count of skipped messages.
Jumps cursor to the oldest message still surviving in the buffer.
Returns the count of skipped messages.
Returns the total count of messages skipped due to writer lapping.
Current reader cursor sequence number.
Number of published messages currently pending for this consumer.
Seeks reader cursor to a specific sequence number.
If target_seq is older than the oldest surviving message in the ring,
cursor automatically advances to the oldest available sequence and returns
the number of skipped messages.
Reference to the attached shared memory offset checkpoint, if configured.
Path to the shared memory offset file, if configured.
Reference to the ReaderRegistry, if enabled in the ring header.
Reference to this consumer’s ReaderRegistration, if registered.
Atomically persists the last processed sequence number (cursor - 1) directly into shared memory.
Atomically persists the last processed sequence number (cursor - 1) to a specified shared memory path.
Sequence number of the last successfully processed message (cursor - 1).
Trait Implementations§
Formats the value using the given formatter. 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. |