[][src]Enum esp_idf_bindgen::RingbufferType_t

#[repr(u32)]pub enum RingbufferType_t {
    RINGBUF_TYPE_NOSPLIT,
    RINGBUF_TYPE_ALLOWSPLIT,
    RINGBUF_TYPE_BYTEBUF,
    RINGBUF_TYPE_MAX,
}

Variants

RINGBUF_TYPE_NOSPLIT

No-split buffers will only store an item in contiguous memory and will never split an item. Each item requires an 8 byte overhead for a header and will always internally occupy a 32-bit aligned size of space.

RINGBUF_TYPE_ALLOWSPLIT

Allow-split buffers will split an item into two parts if necessary in order to store it. Each item requires an 8 byte overhead for a header, splitting incurs an extra header. Each item will always internally occupy a 32-bit aligned size of space.

RINGBUF_TYPE_BYTEBUF

Byte buffers store data as a sequence of bytes and do not maintain separate items, therefore byte buffers have no overhead. All data is stored as a sequence of byte and any number of bytes can be sent or retrieved each time.

RINGBUF_TYPE_MAX

Byte buffers store data as a sequence of bytes and do not maintain separate items, therefore byte buffers have no overhead. All data is stored as a sequence of byte and any number of bytes can be sent or retrieved each time.

Trait Implementations

impl Clone for RingbufferType_t[src]

impl Copy for RingbufferType_t[src]

impl Debug for RingbufferType_t[src]

impl Eq for RingbufferType_t[src]

impl Hash for RingbufferType_t[src]

impl PartialEq<RingbufferType_t> for RingbufferType_t[src]

impl StructuralEq for RingbufferType_t[src]

impl StructuralPartialEq for RingbufferType_t[src]

Auto Trait Implementations

impl Send for RingbufferType_t

impl Sync for RingbufferType_t

impl Unpin for RingbufferType_t

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.