pub struct DiscoveryLogEntry<'log> { /* private fields */ }Expand description
One entry from the discovery log page.
Implementations§
Source§impl<'log> DiscoveryLogEntry<'log>
impl<'log> DiscoveryLogEntry<'log>
Sourcepub fn transport_type(&self) -> u8
pub fn transport_type(&self) -> u8
Raw transport type byte (nvmf_trtype values: 1=RDMA, 2=FC, 3=TCP,
254=loop, …).
Sourcepub fn address_family(&self) -> u8
pub fn address_family(&self) -> u8
Address family for the traddr field (1=IPv4, 2=IPv6, …).
Sourcepub fn subsystem_type(&self) -> u8
pub fn subsystem_type(&self) -> u8
Subsystem type (1=discovery, 2=NVM, …).
Sourcepub fn transport_requirements(&self) -> u8
pub fn transport_requirements(&self) -> u8
Transport requirements byte.
Sourcepub fn controller_id(&self) -> u16
pub fn controller_id(&self) -> u16
Controller ID assigned to the discovered controller (0xFFFF =
dynamic).
Sourcepub fn entry_flags(&self) -> u16
pub fn entry_flags(&self) -> u16
Discovery-log entry flags.
Sourcepub fn transport_service_id(&self) -> Result<&'log str>
pub fn transport_service_id(&self) -> Result<&'log str>
Transport service identifier (port number for TCP/RDMA).
Trait Implementations§
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> 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