pub struct UsedBuffer {
pub id: u16,
pub len: u32,
}Expand description
A buffer returned from the ring after being used by the device.
When the device completes processing a buffer chain, it returns this structure containing the original descriptor ID and the number of bytes written (for chains with writable buffers).
Fields§
§id: u16Descriptor ID that was assigned when the buffer was submitted
len: u32Number of bytes written by the device to writable buffers. For read-only chains, this may be 0 or the total readable length.
Trait Implementations§
Source§impl Clone for UsedBuffer
impl Clone for UsedBuffer
Source§fn clone(&self) -> UsedBuffer
fn clone(&self) -> UsedBuffer
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 UsedBuffer
Auto Trait Implementations§
impl Freeze for UsedBuffer
impl RefUnwindSafe for UsedBuffer
impl Send for UsedBuffer
impl Sync for UsedBuffer
impl Unpin for UsedBuffer
impl UnsafeUnpin for UsedBuffer
impl UnwindSafe for UsedBuffer
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