pub struct RegisteredSpan {
pub buffer_index: u32,
pub offset: u32,
pub len: u32,
}Expand description
Which bytes of one registered buffer an operation reads or writes: bundled into one value so a registered read or write stays under a sane argument count.
A registration is a set of buffers a layer holds for many operations and names by index, as
io_uring’s fixed buffers and an IoRing’s registered buffers both do; this says which of them,
and which part.
Fields§
§buffer_index: u32Which buffer within the registration, as the registering layer numbers them.
offset: u32The starting byte offset within that buffer.
len: u32How many bytes to read or write.
Trait Implementations§
Source§impl Clone for RegisteredSpan
impl Clone for RegisteredSpan
Source§fn clone(&self) -> RegisteredSpan
fn clone(&self) -> RegisteredSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RegisteredSpan
Auto Trait Implementations§
impl Freeze for RegisteredSpan
impl RefUnwindSafe for RegisteredSpan
impl Send for RegisteredSpan
impl Sync for RegisteredSpan
impl Unpin for RegisteredSpan
impl UnsafeUnpin for RegisteredSpan
impl UnwindSafe for RegisteredSpan
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