pub struct NvmeControllerClient { /* private fields */ }
Expand description
Client for modifying the NVMe controller state at runtime.
Implementations§
Source§impl NvmeControllerClient
impl NvmeControllerClient
Sourcepub async fn add_namespace(
&self,
nsid: u32,
disk: Disk,
) -> Result<(), NsidConflict>
pub async fn add_namespace( &self, nsid: u32, disk: Disk, ) -> Result<(), NsidConflict>
Adds a namespace.
Sourcepub async fn remove_namespace(&self, nsid: u32) -> bool
pub async fn remove_namespace(&self, nsid: u32) -> bool
Removes a namespace.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NvmeControllerClient
impl !RefUnwindSafe for NvmeControllerClient
impl Send for NvmeControllerClient
impl Sync for NvmeControllerClient
impl Unpin for NvmeControllerClient
impl !UnwindSafe for NvmeControllerClient
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