#[repr(C)]pub struct ring_buf {
pub buffer: *mut u8,
pub put: ring_buf_index,
pub get: ring_buf_index,
pub size: u32,
}
Expand description
@brief A structure to represent a ring buffer
Fields§
§buffer: *mut u8
@cond INTERNAL_HIDDEN
put: ring_buf_index
§get: ring_buf_index
§size: u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ring_buf
impl RefUnwindSafe for ring_buf
impl !Send for ring_buf
impl !Sync for ring_buf
impl Unpin for ring_buf
impl UnwindSafe for ring_buf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more