pub struct BlockBufferConfig {
pub block_size: NonZeroUsize,
pub align: usize,
pub dma_mask: Option<u64>,
}Expand description
Buffer and address constraints exposed by a host block queue.
Fields§
§block_size: NonZeroUsizeLogical block size accepted by the queue.
align: usizeRequired CPU-buffer alignment in bytes.
dma_mask: Option<u64>Device-visible DMA address mask, when the queue uses DMA.
Implementations§
Trait Implementations§
Source§impl Clone for BlockBufferConfig
impl Clone for BlockBufferConfig
Source§fn clone(&self) -> BlockBufferConfig
fn clone(&self) -> BlockBufferConfig
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 moreSource§impl Debug for BlockBufferConfig
impl Debug for BlockBufferConfig
Source§impl PartialEq for BlockBufferConfig
impl PartialEq for BlockBufferConfig
Source§fn eq(&self, other: &BlockBufferConfig) -> bool
fn eq(&self, other: &BlockBufferConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BlockBufferConfig
impl Eq for BlockBufferConfig
impl StructuralPartialEq for BlockBufferConfig
Auto Trait Implementations§
impl Freeze for BlockBufferConfig
impl RefUnwindSafe for BlockBufferConfig
impl Send for BlockBufferConfig
impl Sync for BlockBufferConfig
impl Unpin for BlockBufferConfig
impl UnsafeUnpin for BlockBufferConfig
impl UnwindSafe for BlockBufferConfig
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