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 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 Unpin for Nvme
impl UnsafeUnpin for Nvme
impl !UnwindSafe 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