[−][src]Struct aeron_rs::concurrent::ring_buffer::ManyToOneRingBuffer
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]
&self,
cmd: AeronCommand,
src_buffer: AtomicBuffer,
src_index: Index,
length: Index
) -> Result<(), RingBufferError>
pub fn read<F: FnMut(AeronCommand, AtomicBuffer)>(
&self,
handler: F,
msg_count_limit: i32
) -> i32
[src]
&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
[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
impl RefUnwindSafe for ManyToOneRingBuffer
impl Unpin for ManyToOneRingBuffer
impl UnwindSafe for ManyToOneRingBuffer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,