Skip to main content

DiscoveryLogEntry

Struct DiscoveryLogEntry 

Source
pub struct DiscoveryLogEntry<'log> { /* private fields */ }
Expand description

One entry from the discovery log page.

Implementations§

Source§

impl<'log> DiscoveryLogEntry<'log>

Source

pub fn transport_type(&self) -> u8

Raw transport type byte (nvmf_trtype values: 1=RDMA, 2=FC, 3=TCP, 254=loop, …).

Source

pub fn address_family(&self) -> u8

Address family for the traddr field (1=IPv4, 2=IPv6, …).

Source

pub fn subsystem_type(&self) -> u8

Subsystem type (1=discovery, 2=NVM, …).

Source

pub fn transport_requirements(&self) -> u8

Transport requirements byte.

Source

pub fn port_id(&self) -> u16

Port identifier within the discovery service.

Source

pub fn controller_id(&self) -> u16

Controller ID assigned to the discovered controller (0xFFFF = dynamic).

Source

pub fn asq_size(&self) -> u16

Admin Submission Queue size for the discovered controller.

Source

pub fn entry_flags(&self) -> u16

Discovery-log entry flags.

Source

pub fn transport_service_id(&self) -> Result<&'log str>

Transport service identifier (port number for TCP/RDMA).

Source

pub fn subnqn(&self) -> Result<&'log str>

Subsystem NQN of the discovered target.

Source

pub fn traddr(&self) -> Result<&'log str>

Transport address (IP, WWPN, …) of the discovered target.

Trait Implementations§

Source§

impl Debug for DiscoveryLogEntry<'_>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'log> Freeze for DiscoveryLogEntry<'log>

§

impl<'log> RefUnwindSafe for DiscoveryLogEntry<'log>

§

impl<'log> Send for DiscoveryLogEntry<'log>

§

impl<'log> Sync for DiscoveryLogEntry<'log>

§

impl<'log> Unpin for DiscoveryLogEntry<'log>

§

impl<'log> UnsafeUnpin for DiscoveryLogEntry<'log>

§

impl<'log> UnwindSafe for DiscoveryLogEntry<'log>

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.