[][src]Struct aeron_rs::concurrent::ring_buffer::ManyToOneRingBuffer

pub struct ManyToOneRingBuffer { /* fields omitted */ }

Methods

impl ManyToOneRingBuffer[src]

pub fn new(buffer: AtomicBuffer) -> Result<Self, RingBufferError>[src]

pub fn write(
    &self,
    cmd: AeronCommand,
    src_buffer: AtomicBuffer,
    src_index: Index,
    length: Index
) -> Result<(), RingBufferError>
[src]

pub fn read<F: FnMut(AeronCommand, AtomicBuffer)>(
    &self,
    handler: F,
    msg_count_limit: i32
) -> i32
[src]

Read from the ring buffer until either wrap-around or msg_count_max messages have been processed. Returns the number of messages processed.

pub fn read_all<F: FnMut(AeronCommand, AtomicBuffer)>(&self, handler: F) -> i32[src]

pub fn capacity(&self) -> Index[src]

pub fn max_msg_len(&self) -> Index[src]

pub fn next_correlation_id(&self) -> i64[src]

pub fn set_consumer_heartbeat_time(&self, time: i64)[src]

pub fn consumer_heartbeat_time(&self) -> i64[src]

pub fn size(&self) -> Index[src]

pub fn unblock(&self) -> bool[src]

Trait Implementations

impl Debug for ManyToOneRingBuffer[src]

impl Send for ManyToOneRingBuffer[src]

impl Sync for ManyToOneRingBuffer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.