pub struct TargetPort {
pub id: String,
pub port_type: PortType,
pub service_address: String,
pub network_address: String,
pub physical_address: String,
pub physical_name: String,
pub system_id: String,
/* private fields */
}
Expand description
Represent a target port which is the front-end port of storage system which storage user/client connect to and get storage service from.
Fields§
§id: String
Identifier.
port_type: PortType
Type of port.
service_address: String
The address used by upper layer like FC and iSCSI:
-
FC and FCoE: WWPN
-
iSCSI: IQN
The string is in lower case, split with :
every two digits if WWPN.
network_address: String
The address used by network layer like FC and TCP/IP:
-
FC/FCoE: WWPN
-
iSCSI:
IPv4:Port
or[IPv6]:Port
The string is in lower case, split with :
every two digits if WWPN.
physical_address: String
The address used by physical layer like FC-0 and MAC:
-
FC and FCoE : WWPN
-
iSCSI: MAC
The string is in Lower case, split with :
every two digits.
physical_name: String
The name of physical port. Administrator could use this name to locate the port on storage system. E.g. ‘eth0’
system_id: String
Identifier of owner system.
Trait Implementations§
source§impl Clone for TargetPort
impl Clone for TargetPort
source§fn clone(&self) -> TargetPort
fn clone(&self) -> TargetPort
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetPort
impl Debug for TargetPort
source§impl<'de> Deserialize<'de> for TargetPort
impl<'de> Deserialize<'de> for TargetPort
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for TargetPort
impl RefUnwindSafe for TargetPort
impl Send for TargetPort
impl Sync for TargetPort
impl Unpin for TargetPort
impl UnwindSafe for TargetPort
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)