pub struct NvmeFaultControllerClient { /* private fields */ }Expand description
Client for modifying the NVMe controller state at runtime.
Implementations§
Source§impl NvmeFaultControllerClient
impl NvmeFaultControllerClient
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 NvmeFaultControllerClient
impl !RefUnwindSafe for NvmeFaultControllerClient
impl Send for NvmeFaultControllerClient
impl Sync for NvmeFaultControllerClient
impl Unpin for NvmeFaultControllerClient
impl !UnwindSafe for NvmeFaultControllerClient
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