#[repr(C)]pub struct zbq_contiguous_run {
pub base: *mut c_void,
pub max_bytes: u64,
pub offset: u64,
}Expand description
Result of a producer reservation query.
Describes a physically contiguous span of the ring that the producer is allowed to write into. The run never wraps around the physical end of the buffer.
Fields§
§base: *mut c_voidPointer to the first writable byte inside the producer’s ring mapping.
max_bytes: u64Largest number of bytes that may be written starting at base.
offset: u64Logical byte offset of base (equal to the producer head at query time).
Trait Implementations§
Source§impl Clone for zbq_contiguous_run
impl Clone for zbq_contiguous_run
Source§fn clone(&self) -> zbq_contiguous_run
fn clone(&self) -> zbq_contiguous_run
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for zbq_contiguous_run
impl Debug for zbq_contiguous_run
Source§impl PartialEq for zbq_contiguous_run
impl PartialEq for zbq_contiguous_run
impl Copy for zbq_contiguous_run
impl Eq for zbq_contiguous_run
impl StructuralPartialEq for zbq_contiguous_run
Auto Trait Implementations§
impl Freeze for zbq_contiguous_run
impl RefUnwindSafe for zbq_contiguous_run
impl !Send for zbq_contiguous_run
impl !Sync for zbq_contiguous_run
impl Unpin for zbq_contiguous_run
impl UnsafeUnpin for zbq_contiguous_run
impl UnwindSafe for zbq_contiguous_run
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