pub struct BufferElement {
pub addr: u64,
pub len: u32,
pub writable: bool,
}Expand description
A single buffer element in a scatter-gather list.
Represents one contiguous memory region that the device will read from
or write to. Multiple elements can be chained together to form a
BufferChain.
Fields§
§addr: u64Physical address of buffer
len: u32Length of the buffer in bytes
writable: boolWhether this buffer is writable by the device
Trait Implementations§
Source§impl Clone for BufferElement
impl Clone for BufferElement
Source§fn clone(&self) -> BufferElement
fn clone(&self) -> BufferElement
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 BufferElement
Source§impl Debug for BufferElement
impl Debug for BufferElement
Source§impl From<&Descriptor> for BufferElement
impl From<&Descriptor> for BufferElement
Source§fn from(desc: &Descriptor) -> Self
fn from(desc: &Descriptor) -> Self
Converts to this type from the input type.
Source§impl From<BufferElement> for Allocation
impl From<BufferElement> for Allocation
Source§fn from(value: BufferElement) -> Self
fn from(value: BufferElement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BufferElement
impl RefUnwindSafe for BufferElement
impl Send for BufferElement
impl Sync for BufferElement
impl Unpin for BufferElement
impl UnsafeUnpin for BufferElement
impl UnwindSafe for BufferElement
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