⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

IscsiSession

Struct IscsiSession 

Source
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: String

Target name (IQN).

§initiator_name: String

Initiator name (IQN).

§isid: u64

Initiator Session ID (48-bit).

§tsih: u16

Target Session Identifying Handle.

§cmd_sn: u32

Command Sequence Number.

§exp_stat_sn: u32

Expected Status Sequence Number.

§state: SessionState

Session state.

§max_recv_data_segment_length: u32

Negotiated MaxRecvDataSegmentLength.

§max_burst_length: u32

Negotiated MaxBurstLength.

§first_burst_length: u32

Negotiated FirstBurstLength.

Implementations§

Source§

impl IscsiSession

Source

pub fn new(initiator_name: &str, target_name: &str) -> Self

Create a new session.

Source

pub fn next_cmd_sn(&mut self) -> u32

Get next command sequence number and increment.

Trait Implementations§

Source§

impl Debug for IscsiSession

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for IscsiSession

§

impl RefUnwindSafe for IscsiSession

§

impl Send for IscsiSession

§

impl Sync for IscsiSession

§

impl Unpin for IscsiSession

§

impl UnwindSafe for IscsiSession

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.