pub struct RingCounters {
pub available: u16,
pub consumed_available: u16,
pub used: u16,
pub consumed_used: u16,
}Expand description
Observable split-ring counters for deterministic wraparound tests.
Fields§
§available: u16Driver-published available index.
consumed_available: u16Device-consumed available index.
used: u16Device-published used index.
consumed_used: u16Driver-consumed used index.
Trait Implementations§
Source§impl Clone for RingCounters
impl Clone for RingCounters
Source§fn clone(&self) -> RingCounters
fn clone(&self) -> RingCounters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RingCounters
Source§impl Debug for RingCounters
impl Debug for RingCounters
impl Eq for RingCounters
Source§impl PartialEq for RingCounters
impl PartialEq for RingCounters
impl StructuralPartialEq for RingCounters
Auto Trait Implementations§
impl Freeze for RingCounters
impl RefUnwindSafe for RingCounters
impl Send for RingCounters
impl Sync for RingCounters
impl Unpin for RingCounters
impl UnsafeUnpin for RingCounters
impl UnwindSafe for RingCounters
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