[][src]Struct lock_free_multi_producer_single_consumer_ring_buffer::RingBufferConsumer

pub struct RingBufferConsumer<T: Sized>(_);

A ring buffer consumer for receiving lock-less bursts of messages.

Not particularly cheap to consume from (as it walks all producers) so try to use as few producers as possible and consume as much as possible with each call.

Methods

impl<T: Sized> RingBufferConsumer<T>
[src]

Important traits for RingBufferConsumerGuard<'a, T>
pub fn consume<'a>(&'a self) -> RingBufferConsumerGuard<'a, T>
[src]

Get a contiguous range which is ready to be consumed.

Only call this on one thread at a time.

Not particularly cheap (as it walks all producers) so try to take as much as possible.

Trait Implementations

impl<T: Eq + Sized> Eq for RingBufferConsumer<T>
[src]

impl<T: PartialOrd + Sized> PartialOrd<RingBufferConsumer<T>> for RingBufferConsumer<T>
[src]

impl<T: PartialEq + Sized> PartialEq<RingBufferConsumer<T>> for RingBufferConsumer<T>
[src]

impl<T: Ord + Sized> Ord for RingBufferConsumer<T>
[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl<T: Debug + Sized> Debug for RingBufferConsumer<T>
[src]

Auto Trait Implementations

impl<T> !Send for RingBufferConsumer<T>

impl<T> !Sync for RingBufferConsumer<T>

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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