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
sourceimpl<'a> Session<'a>
impl<'a> Session<'a>
sourcepub fn builder() -> SessionBuilder<'a, ((), (), (), (), (), (), ())>
pub fn builder() -> SessionBuilder<'a, ((), (), (), (), (), (), ())>
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
impl<'a> Eq for Session<'a>
impl<'a> StructuralEq for Session<'a>
impl<'a> StructuralPartialEq for Session<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Session<'a>
impl<'a> Send for Session<'a>
impl<'a> Sync for Session<'a>
impl<'a> Unpin for Session<'a>
impl<'a> UnwindSafe for Session<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more