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: bool
x11_forwarding: bool
agent: bool
subsystem: bool
escape_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
Auto Trait Implementations
impl<'a> RefUnwindSafe for Session<'a>
impl<'a> UnwindSafe for Session<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more