pub struct Path<'r> { /* private fields */ }Expand description
A single multipath route to a namespace.
Implementations§
Source§impl<'r> Path<'r>
impl<'r> Path<'r>
Sourcepub fn ana_state(&self) -> Result<&'r str>
pub fn ana_state(&self) -> Result<&'r str>
Asymmetric Namespace Access (ANA) state for this path: optimized,
non-optimized, inaccessible, persistent-loss, or change.
Sourcepub fn numa_nodes(&self) -> Result<&'r str>
pub fn numa_nodes(&self) -> Result<&'r str>
Comma-separated list of NUMA nodes reachable through this path.
Only present when built against a libnvme that exposes
nvme_path_get_numa_nodes (added after libnvme 1.8 / Ubuntu 24.04).
Sourcepub fn queue_depth(&self) -> i32
pub fn queue_depth(&self) -> i32
Current queue depth on this path.
Only present when built against a libnvme that exposes
nvme_path_get_queue_depth (added after libnvme 1.8 / Ubuntu 24.04).
Trait Implementations§
Auto Trait Implementations§
impl<'r> Freeze for Path<'r>
impl<'r> RefUnwindSafe for Path<'r>
impl<'r> !Send for Path<'r>
impl<'r> !Sync for Path<'r>
impl<'r> Unpin for Path<'r>
impl<'r> UnsafeUnpin for Path<'r>
impl<'r> UnwindSafe for Path<'r>
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