#[repr(C)]pub struct zbq_msg_view {
pub header: *const zbq_msg_header,
pub payload: *const c_void,
pub payload_len: u64,
pub logical_offset: u64,
pub total_len: u64,
}Expand description
Read-only view of a message inside the ring.
Returned by zbq_consumer_peek.
Fields§
§header: *const zbq_msg_headerPointer to the message header inside the read-only ring mapping.
payload: *const c_voidPointer to the payload bytes that follow the header.
payload_len: u64Length of the payload in bytes.
logical_offset: u64Logical offset of this message in the ring.
total_len: u64Total bytes occupied by this message (header + payload).
Trait Implementations§
Source§impl Clone for zbq_msg_view
impl Clone for zbq_msg_view
Source§fn clone(&self) -> zbq_msg_view
fn clone(&self) -> zbq_msg_view
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_msg_view
impl Debug for zbq_msg_view
Source§impl PartialEq for zbq_msg_view
impl PartialEq for zbq_msg_view
impl Copy for zbq_msg_view
impl Eq for zbq_msg_view
impl StructuralPartialEq for zbq_msg_view
Auto Trait Implementations§
impl Freeze for zbq_msg_view
impl RefUnwindSafe for zbq_msg_view
impl !Send for zbq_msg_view
impl !Sync for zbq_msg_view
impl Unpin for zbq_msg_view
impl UnsafeUnpin for zbq_msg_view
impl UnwindSafe for zbq_msg_view
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