pub struct IscsiSession {
pub target_name: String,
pub initiator_name: String,
pub isid: u64,
pub tsih: u16,
pub cmd_sn: u32,
pub exp_stat_sn: u32,
pub state: SessionState,
pub max_recv_data_segment_length: u32,
pub max_burst_length: u32,
pub first_burst_length: u32,
}Expand description
iSCSI session.
Fields§
§target_name: StringTarget name (IQN).
initiator_name: StringInitiator name (IQN).
isid: u64Initiator Session ID (48-bit).
tsih: u16Target Session Identifying Handle.
cmd_sn: u32Command Sequence Number.
exp_stat_sn: u32Expected Status Sequence Number.
state: SessionStateSession state.
max_recv_data_segment_length: u32Negotiated MaxRecvDataSegmentLength.
max_burst_length: u32Negotiated MaxBurstLength.
first_burst_length: u32Negotiated FirstBurstLength.
Implementations§
Source§impl IscsiSession
impl IscsiSession
Sourcepub fn next_cmd_sn(&mut self) -> u32
pub fn next_cmd_sn(&mut self) -> u32
Get next command sequence number and increment.