Struct openssh_mux_client::Session[][src]

pub struct Session<'a> {
    pub tty: bool,
    pub x11_forwarding: bool,
    pub agent: bool,
    pub subsystem: bool,
    pub escape_ch: char,
    pub term: Cow<'a, str>,
    pub cmd: Cow<'a, str>,
    pub env: Option<&'a [Cow<'a, str>]>,
}

Fields

tty: boolx11_forwarding: boolagent: boolsubsystem: boolescape_ch: char

Set to 0xffffffff(char::MAX) to disable escape character

term: Cow<'a, str>

Generally set to $TERM.

cmd: Cow<'a, str>env: Option<&'a [Cow<'a, str>]>

Implementations

Create a builder for building Session. On the builder, call .tty(...)(optional), .x11_forwarding(...)(optional), .agent(...)(optional), .subsystem(...)(optional), .escape_ch(...)(optional), .term(...)(optional), .cmd(...), .env(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of Session.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.