pub struct AsyncRingBuffer {
pub capacity: u32,
pub write_idx: u32,
pub read_idx: u32,
pub count: u32,
}Expand description
Async ring buffer model for verification
Fields§
§capacity: u32Buffer capacity (power of 2)
write_idx: u32Write index (wraps around)
read_idx: u32Read index (wraps around)
count: u32Number of items currently in buffer
Implementations§
Source§impl AsyncRingBuffer
impl AsyncRingBuffer
Trait Implementations§
Source§impl Clone for AsyncRingBuffer
impl Clone for AsyncRingBuffer
Source§fn clone(&self) -> AsyncRingBuffer
fn clone(&self) -> AsyncRingBuffer
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AsyncRingBuffer
impl RefUnwindSafe for AsyncRingBuffer
impl Send for AsyncRingBuffer
impl Sync for AsyncRingBuffer
impl Unpin for AsyncRingBuffer
impl UnwindSafe for AsyncRingBuffer
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)