Skip to main content

Inner

Struct Inner 

Source
struct Inner {
Show 25 fields writer: Mutex<File>, probe: Mutex<File>, term: FairMutex<Term<Listener>>, events: Arc<Mutex<Vec<Event>>>, osc: Mutex<Osc133>, output: Sender<OutputChunk>, state_tx: Sender<State>, state_rx: Receiver<State>, exit_tx: Sender<bool>, exit_rx: Receiver<bool>, seq: AtomicU32, lines: AtomicU64, history: usize, child_pid: i32, closed: AtomicBool, alive: AtomicBool, cols: AtomicU16, rows: AtomicU16, shell: String, cwd: PathBuf, shim: Option<PathBuf>, last_output: Mutex<Instant>, shell_exit: Mutex<Option<Exit>>, title: Mutex<String>, resize_tx: Sender<(u16, u16)>,
}

Fields§

§writer: Mutex<File>§probe: Mutex<File>§term: FairMutex<Term<Listener>>§events: Arc<Mutex<Vec<Event>>>§osc: Mutex<Osc133>§output: Sender<OutputChunk>§state_tx: Sender<State>§state_rx: Receiver<State>§exit_tx: Sender<bool>§exit_rx: Receiver<bool>§seq: AtomicU32§lines: AtomicU64

The lifetime count of lines that entered the buffer, read cursors measured in it. Written under the term lock, so it is consistent with the grid a read sees.

§history: usize§child_pid: i32§closed: AtomicBool§alive: AtomicBool§cols: AtomicU16§rows: AtomicU16§shell: String§cwd: PathBuf§shim: Option<PathBuf>§last_output: Mutex<Instant>§shell_exit: Mutex<Option<Exit>>§title: Mutex<String>§resize_tx: Sender<(u16, u16)>

Implementations§

Source§

impl Inner

Source

fn write(&self, bytes: &[u8]) -> Result<(), Error>

Source

fn echo(&self) -> bool

Source

fn close(&self)

Source

fn publish_state(&self)

Source

fn state(&self) -> State

A dead shell is not running anything. Its marks still hold the last command, so the classifier alone would report a running session whose last exit is stale; the shell’s own exit is the honest answer.

Auto Trait Implementations§

§

impl !Freeze for Inner

§

impl !RefUnwindSafe for Inner

§

impl !UnwindSafe for Inner

§

impl Send for Inner

§

impl Sync for Inner

§

impl Unpin for Inner

§

impl UnsafeUnpin for Inner

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more