[][src]Struct bbqueue::cm_mutex::BBBuffer

pub struct BBBuffer<N: ArrayLength<u8>>(_);

A backing structure for a BBQueue. Can be used to create either a BBQueue or a split Producer/Consumer pair

Methods

impl<'a, N> BBBuffer<N> where
    N: ArrayLength<u8>, 
[src]

pub fn try_split(&'a self) -> Result<(Producer<'a, N>, Consumer<'a, N>)>[src]

NOTE: Takes a critical section while splitting

impl<N> BBBuffer<N> where
    N: ArrayLength<u8>, 
[src]

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

Returns the size of the backing storage.

This is the maximum number of bytes that can be stored in this queue.

impl<N> BBBuffer<N> where
    N: ArrayLength<u8>, 
[src]

pub fn new() -> Self[src]

Auto Trait Implementations

impl<N> Send for BBBuffer<N>

impl<N> Sync for BBBuffer<N>

impl<N> Unpin for BBBuffer<N> where
    <N as ArrayLength<u8>>::ArrayType: Unpin

impl<N> UnwindSafe for BBBuffer<N> where
    <N as ArrayLength<u8>>::ArrayType: UnwindSafe

impl<N> !RefUnwindSafe for BBBuffer<N>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self