Struct riot_sys::ringbuffer_t[][src]

#[repr(C)]
pub struct ringbuffer_t { pub buf: *mut c_char, pub size: c_uint, pub start: c_uint, pub avail: c_uint, }
Expand description

@brief Ringbuffer. @details Non thread-safe FIFO ringbuffer implementation around a char array.

Fields

buf: *mut c_char

< Buffer to operate on.

size: c_uint

< Size of buf.

start: c_uint

< Current read position in the ring buffer.

avail: c_uint

< Number of elements available for reading.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.