pub struct RxMetadata<'a> { /* private fields */ }Expand description
A guard for reading metadata on an Rx buffer.
Holds a shared borrow of the underlying descriptor (DescRef),
ensuring that atomic reference counting is performed only once when obtaining
and dropping this guard, rather than on every individual field access.
Implementations§
Source§impl<'a> RxMetadata<'a>
impl<'a> RxMetadata<'a>
Sourcepub fn rx_checksum_offloading(&self) -> Option<ChecksumRxOffloading>
pub fn rx_checksum_offloading(&self) -> Option<ChecksumRxOffloading>
Retrieves the checksum offloading information.
Sourcepub fn frame_type(&self) -> Result<FrameType>
pub fn frame_type(&self) -> Result<FrameType>
Retrieves the frame type of the buffer.
Auto Trait Implementations§
impl<'a> Freeze for RxMetadata<'a>
impl<'a> RefUnwindSafe for RxMetadata<'a>
impl<'a> Send for RxMetadata<'a>
impl<'a> Sync for RxMetadata<'a>
impl<'a> Unpin for RxMetadata<'a>
impl<'a> UnsafeUnpin for RxMetadata<'a>
impl<'a> UnwindSafe for RxMetadata<'a>
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