pub struct Nvme { /* private fields */ }Implementations§
Source§impl Nvme
impl Nvme
pub fn new( bar_addr: impl Into<MmioAddr>, bar_size: usize, dma_mask: u64, dma_op: &'static dyn DmaOp, mmio_op: &'static dyn MmioOp, config: Config, ) -> Result<Self>
pub fn dma_mask(&self) -> u64
pub fn namespace_list(&mut self) -> Result<Vec<Namespace>>
pub fn io_queue_count(&self) -> usize
pub fn page_size(&self) -> usize
pub fn io_queue_interrupts_enabled(&self) -> bool
pub fn interrupt_vector(&self) -> u32
pub fn msix_interrupts_enabled(&self) -> bool
pub fn interrupt_vectors(&self) -> &[u16]
pub fn mask_interrupt_vector(&mut self, vector: u32)
pub fn unmask_interrupt_vector(&mut self, vector: u32)
pub fn get_identfy<T: Identify>(&mut self, want: T) -> Result<T::Output>
pub fn block_write_sync( &mut self, ns: &Namespace, block_start: u64, buff: &[u8], ) -> Result<()>
pub fn block_read_sync( &mut self, ns: &Namespace, block_start: u64, buff: &mut [u8], ) -> Result<()>
pub fn version(&self) -> (usize, usize, usize)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Nvme
impl !RefUnwindSafe for Nvme
impl !Sync for Nvme
impl !UnwindSafe for Nvme
impl Unpin for Nvme
impl UnsafeUnpin for Nvme
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