pub struct ScreenCapture {Show 15 fields
pub schema_version: u32,
pub rows: u16,
pub columns: u16,
pub text_rows: Vec<String>,
pub cursor_row: u16,
pub cursor_column: u16,
pub cursor_visible: bool,
pub alternate_screen: bool,
pub revision: u64,
pub bytes_received: u64,
pub raw_truncated: bool,
pub parser_errors: usize,
pub reader_error: Option<String>,
pub status: ProcessStatus,
pub cells: Option<Vec<CellCapture>>,
}Expand description
Typed snapshot of the current visible screen and child state.
Fields§
§schema_version: u32Contract version for forwards-compatible consumers.
rows: u16Screen row count.
columns: u16Screen column count.
text_rows: Vec<String>Visible rows with terminal escapes resolved.
cursor_row: u16Cursor row.
cursor_column: u16Cursor column.
cursor_visible: boolWhether the cursor is visible.
alternate_screen: boolWhether the alternate screen buffer is active.
revision: u64Monotonic state revision.
bytes_received: u64Total bytes received from the child.
raw_truncated: boolWhether the bounded raw history discarded older bytes.
parser_errors: usizeVT parser error count.
reader_error: Option<String>Reader failure, if the PTY reader ended with an error.
status: ProcessStatusChild process status.
cells: Option<Vec<CellCapture>>Detailed cells when a region was requested.
Trait Implementations§
Source§impl Clone for ScreenCapture
impl Clone for ScreenCapture
Source§fn clone(&self) -> ScreenCapture
fn clone(&self) -> ScreenCapture
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScreenCapture
impl Debug for ScreenCapture
impl Eq for ScreenCapture
Source§impl PartialEq for ScreenCapture
impl PartialEq for ScreenCapture
Source§impl Serialize for ScreenCapture
impl Serialize for ScreenCapture
impl StructuralPartialEq for ScreenCapture
Auto Trait Implementations§
impl Freeze for ScreenCapture
impl RefUnwindSafe for ScreenCapture
impl Send for ScreenCapture
impl Sync for ScreenCapture
impl Unpin for ScreenCapture
impl UnsafeUnpin for ScreenCapture
impl UnwindSafe for ScreenCapture
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§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.