pub struct ManyToOneRingBuffer { /* private fields */ }
Implementations§
Source§impl ManyToOneRingBuffer
impl ManyToOneRingBuffer
pub fn new(buffer: AtomicBuffer) -> Result<Self, RingBufferError>
pub fn write( &self, cmd: AeronCommand, src_buffer: AtomicBuffer, src_index: Index, length: Index, ) -> Result<(), RingBufferError>
Sourcepub fn read<F: FnMut(AeronCommand, AtomicBuffer)>(
&self,
handler: F,
msg_count_limit: i32,
) -> i32
pub fn read<F: FnMut(AeronCommand, AtomicBuffer)>( &self, handler: F, msg_count_limit: i32, ) -> i32
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
pub fn capacity(&self) -> Index
pub fn max_msg_len(&self) -> Index
pub fn next_correlation_id(&self) -> i64
pub fn set_consumer_heartbeat_time(&self, time: i64)
pub fn consumer_heartbeat_time(&self) -> i64
pub fn size(&self) -> Index
pub fn unblock(&self) -> bool
Trait Implementations§
Source§impl Debug for ManyToOneRingBuffer
impl Debug for ManyToOneRingBuffer
impl Send for ManyToOneRingBuffer
impl Sync for ManyToOneRingBuffer
Auto Trait Implementations§
impl Freeze for ManyToOneRingBuffer
impl RefUnwindSafe for ManyToOneRingBuffer
impl Unpin for ManyToOneRingBuffer
impl UnwindSafe for ManyToOneRingBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more