pub struct TermTab {
pub session_id: SessionId,
pub host_name: String,
pub has_activity: bool,
pub parser: Arc<Mutex<Parser>>,
pub scroll_offset: usize,
pub saw_output: bool,
pub ended: bool,
}Expand description
A single open SSH/PTY tab.
Fields§
§session_id: SessionIdUnique identifier matching the PtyManager session.
host_name: StringDisplay name (= host.name).
has_activity: boolSet to true when new output arrives while this tab is not focused,
providing an unread-output indicator in the tab bar.
parser: Arc<Mutex<Parser>>Shared VT100 parser — written by the PTY reader thread, snapshotted by the render loop. Stored here (in ViewState) so rendering does not require access to the PtyManager.
scroll_offset: usizeNumber of lines scrolled back from the live screen (0 = at the bottom). Set via mouse-wheel; reset to 0 when the user types anything.
saw_output: boolAny output reached the tab, a password prompt included.
ended: boolThe remote side ended the session; the tab stays until Enter or Esc.
Implementations§
Auto Trait Implementations§
impl Freeze for TermTab
impl RefUnwindSafe for TermTab
impl Send for TermTab
impl Sync for TermTab
impl Unpin for TermTab
impl UnsafeUnpin for TermTab
impl UnwindSafe for TermTab
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more