pub struct RingBuffer<AllocU8: Allocator<u8>> {
pub size_: u32,
pub mask_: u32,
pub tail_size_: u32,
pub total_size_: u32,
pub cur_size_: u32,
pub pos_: u32,
pub data_mo: AllocU8::AllocatedMemory,
pub buffer_index: usize,
}Fields
size_: u32mask_: u32tail_size_: u32total_size_: u32cur_size_: u32pos_: u32data_mo: AllocU8::AllocatedMemorybuffer_index: usizeAuto Trait Implementations
impl<AllocU8> RefUnwindSafe for RingBuffer<AllocU8> where
<AllocU8 as Allocator<u8>>::AllocatedMemory: RefUnwindSafe,
impl<AllocU8> Send for RingBuffer<AllocU8> where
<AllocU8 as Allocator<u8>>::AllocatedMemory: Send,
impl<AllocU8> Sync for RingBuffer<AllocU8> where
<AllocU8 as Allocator<u8>>::AllocatedMemory: Sync,
impl<AllocU8> Unpin for RingBuffer<AllocU8> where
<AllocU8 as Allocator<u8>>::AllocatedMemory: Unpin,
impl<AllocU8> UnwindSafe for RingBuffer<AllocU8> where
<AllocU8 as Allocator<u8>>::AllocatedMemory: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more