pub struct DmaConstraints {
pub addr_mask: u64,
pub align: usize,
pub boundary: Option<usize>,
pub max_segment_size: Option<usize>,
}Expand description
Device-visible DMA constraints.
Fields§
§addr_mask: u64§align: usize§boundary: Option<usize>§max_segment_size: Option<usize>Implementations§
Source§impl DmaConstraints
impl DmaConstraints
pub const fn new(addr_mask: u64) -> Self
pub fn with_align(self, align: usize) -> Self
pub fn with_boundary(self, boundary: usize) -> Self
pub fn with_max_segment_size(self, max_segment_size: usize) -> Self
Trait Implementations§
Source§impl Clone for DmaConstraints
impl Clone for DmaConstraints
Source§fn clone(&self) -> DmaConstraints
fn clone(&self) -> DmaConstraints
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 DmaConstraints
Source§impl Debug for DmaConstraints
impl Debug for DmaConstraints
impl Eq for DmaConstraints
Source§impl PartialEq for DmaConstraints
impl PartialEq for DmaConstraints
Source§fn eq(&self, other: &DmaConstraints) -> bool
fn eq(&self, other: &DmaConstraints) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DmaConstraints
Auto Trait Implementations§
impl Freeze for DmaConstraints
impl RefUnwindSafe for DmaConstraints
impl Send for DmaConstraints
impl Sync for DmaConstraints
impl Unpin for DmaConstraints
impl UnsafeUnpin for DmaConstraints
impl UnwindSafe for DmaConstraints
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