pub struct RingState {
pub segment_phys: u64,
pub index: usize,
pub cycle: bool,
pub capacity: usize,
}Expand description
Producer/consumer cycle state for ring buffers
Fields§
§segment_phys: u64Physical base address of the ring segment
index: usizeCurrent enqueue/dequeue index within the segment
cycle: boolCurrent cycle bit (toggled when wrapping via Link TRB)
capacity: usizeNumber of TRBs in the segment (excluding Link TRB at end)
Implementations§
Trait Implementations§
impl Copy for RingState
impl Eq for RingState
impl StructuralPartialEq for RingState
Auto Trait Implementations§
impl Freeze for RingState
impl RefUnwindSafe for RingState
impl Send for RingState
impl Sync for RingState
impl Unpin for RingState
impl UnwindSafe for RingState
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)