pub struct TerminalDataAction {
pub data: String,
}Expand description
Terminal output data (pty → client direction).
Appends data to the terminal’s content in the reducer.
terminal/data and terminal/input are intentionally separate actions
because standard write-ahead reconciliation is not safe for terminal I/O.
A pty is a stateful, mutable process — optimistically applying input or
predicting output would produce incorrect state. Instead, terminal/input
is a side-effect-only action (client → server → pty), and terminal/data
is server-authoritative output (pty → server → client).
Fields§
§data: StringOutput data (may contain ANSI escape sequences)
Trait Implementations§
Source§impl Clone for TerminalDataAction
impl Clone for TerminalDataAction
Source§fn clone(&self) -> TerminalDataAction
fn clone(&self) -> TerminalDataAction
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 TerminalDataAction
impl Debug for TerminalDataAction
Source§impl<'de> Deserialize<'de> for TerminalDataAction
impl<'de> Deserialize<'de> for TerminalDataAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TerminalDataAction
impl PartialEq for TerminalDataAction
Source§fn eq(&self, other: &TerminalDataAction) -> bool
fn eq(&self, other: &TerminalDataAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TerminalDataAction
impl Serialize for TerminalDataAction
impl StructuralPartialEq for TerminalDataAction
Auto Trait Implementations§
impl Freeze for TerminalDataAction
impl RefUnwindSafe for TerminalDataAction
impl Send for TerminalDataAction
impl Sync for TerminalDataAction
impl Unpin for TerminalDataAction
impl UnsafeUnpin for TerminalDataAction
impl UnwindSafe for TerminalDataAction
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