pub enum ServerMsg {
Snapshot {
session_id: Option<String>,
session_name: String,
cwd: String,
panes: Vec<WirePane>,
active: WirePaneId,
status: WireStatus,
transcripts: Vec<PaneTranscript>,
show_thinking: bool,
},
Entries {
pane: WirePaneId,
from: usize,
entries: Vec<WireEntryView>,
},
Panes {
panes: Vec<WirePane>,
active: WirePaneId,
},
Status {
status: WireStatus,
},
Notice {
text: String,
},
SetInput {
mode: InputSetMode,
text: String,
},
Resumed {},
Error {
message: String,
},
}Variants§
Snapshot
First frame on connect (and after a failed resume): complete state.
Entries
Replace pane’s entries from index from to the end with entries.
from == 0 with empty entries = the transcript was cleared (/new).
Panes
Pane list / chrome changed (panes added, released, status, turn, todos).
Status
Fields
§
status: WireStatusNotice
A system line produced outside the fold (async command output).
SetInput
The server asks the client to replace/augment its input box
(CommandHost::set_input / prepend_input / insert_input).
Resumed
Resume accepted: client state is current up to seq; deltas follow.
Error
Auth failed / connection refused; the socket closes after this.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ServerMsg
impl<'de> Deserialize<'de> for ServerMsg
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
impl StructuralPartialEq for ServerMsg
Auto Trait Implementations§
impl Freeze for ServerMsg
impl RefUnwindSafe for ServerMsg
impl Send for ServerMsg
impl Sync for ServerMsg
impl Unpin for ServerMsg
impl UnsafeUnpin for ServerMsg
impl UnwindSafe for ServerMsg
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