pub struct Nvme { /* private fields */ }Implementations§
Source§impl Nvme
impl Nvme
pub fn new(bar: NonNull<u8>, config: Config) -> Result<Self>
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)
Auto Trait Implementations§
impl Freeze for Nvme
impl !RefUnwindSafe for Nvme
impl !Send for Nvme
impl !Sync for Nvme
impl Unpin 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