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§
source§impl<'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> StructuralPartialEq for Session<'a>
Auto Trait Implementations§
impl<'a> Freeze for Session<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)