pub struct ConsumerUsage {
pub pid: u32,
pub free: usize,
pub available: usize,
}Expand description
for a given consumer (used) this provides information about the data that’s available to it and the free space the producer has to put data before running into that consumers get offset.
Fields§
§pid: u32§free: usize§available: usizeTrait Implementations§
Source§impl Debug for ConsumerUsage
impl Debug for ConsumerUsage
Source§impl PartialEq for ConsumerUsage
impl PartialEq for ConsumerUsage
Source§fn eq(&self, other: &ConsumerUsage) -> bool
fn eq(&self, other: &ConsumerUsage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConsumerUsage
Auto Trait Implementations§
impl Freeze for ConsumerUsage
impl RefUnwindSafe for ConsumerUsage
impl Send for ConsumerUsage
impl Sync for ConsumerUsage
impl Unpin for ConsumerUsage
impl UnsafeUnpin for ConsumerUsage
impl UnwindSafe for ConsumerUsage
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