Skip to main content

Path

Struct Path 

Source
pub struct Path<'r> { /* private fields */ }
Expand description

A single multipath route to a namespace.

Implementations§

Source§

impl<'r> Path<'r>

Source

pub fn name(&self) -> Result<&'r str>

Kernel-assigned path name.

Source

pub fn ana_state(&self) -> Result<&'r str>

Asymmetric Namespace Access (ANA) state for this path: optimized, non-optimized, inaccessible, persistent-loss, or change.

Source

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).

Source

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§

Source§

impl Debug for Path<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.