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: charSet 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