Struct openssh_mux_client::Session
source · [−]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, NonZeroByteSlice>,
pub cmd: Cow<'a, NonZeroByteSlice>,
}
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, NonZeroByteSlice>
Generally set to $TERM
.
cmd: Cow<'a, NonZeroByteSlice>
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(...)
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