pub struct DmaSegment {
pub addr: DmaAddr,
pub len: NonZeroUsize,
}Expand description
One device-visible DMA segment owned by a prepared request.
Fields§
§addr: DmaAddr§len: NonZeroUsizeImplementations§
Source§impl DmaSegment
impl DmaSegment
pub const fn new(addr: DmaAddr, len: NonZeroUsize) -> Self
Trait Implementations§
Source§impl Clone for DmaSegment
impl Clone for DmaSegment
Source§fn clone(&self) -> DmaSegment
fn clone(&self) -> DmaSegment
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 DmaSegment
Source§impl Debug for DmaSegment
impl Debug for DmaSegment
impl Eq for DmaSegment
Source§impl PartialEq for DmaSegment
impl PartialEq for DmaSegment
Source§fn eq(&self, other: &DmaSegment) -> bool
fn eq(&self, other: &DmaSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DmaSegment
Auto Trait Implementations§
impl Freeze for DmaSegment
impl RefUnwindSafe for DmaSegment
impl Send for DmaSegment
impl Sync for DmaSegment
impl Unpin for DmaSegment
impl UnsafeUnpin for DmaSegment
impl UnwindSafe for DmaSegment
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