pub enum ClientMsg {
Submit {
pane: WirePaneId,
text: String,
},
Command {
pane: WirePaneId,
line: String,
},
Cancel {
pane: WirePaneId,
},
SwitchPane {
pane: WirePaneId,
},
Resume {
seq: u64,
},
}Variants§
Submit
User pressed send. Routed via AgentRegistry::send_prompt (steer if a
turn is in flight, new turn if idle).
Command
A slash command line (leading ‘/’). Runs through hrdr_app dispatch.
Cancel
Cancel the active turn on pane (abort task + clear_pending).
Fields
§
pane: WirePaneIdSwitchPane
Fields
§
pane: WirePaneIdResume
Reconnect: client last saw seq. Server replays buffered frames after
seq, or sends a fresh Snapshot if the buffer no longer reaches back.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClientMsg
impl<'de> Deserialize<'de> for ClientMsg
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 ClientMsg
Auto Trait Implementations§
impl Freeze for ClientMsg
impl RefUnwindSafe for ClientMsg
impl Send for ClientMsg
impl Sync for ClientMsg
impl Unpin for ClientMsg
impl UnsafeUnpin for ClientMsg
impl UnwindSafe for ClientMsg
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