pub enum RemoteRealtimeMessage {
Register {
payload: RegisterPayload,
},
Heartbeat {
payload: HeartbeatPayload,
},
Stream {
payload: StreamPayload,
},
CommandResult {
payload: CommandResultPayload,
},
Event {
payload: EventPayload,
},
Command {
payload: CommandPayload,
},
Ping {
payload: PingPongPayload,
},
Pong {
payload: PingPongPayload,
},
Disconnect {
payload: DisconnectPayload,
},
}Expand description
Remote Realtime message types (matching TypeScript protocol)
Variants§
Register
CLI to Backend: Initial registration
Fields
§
payload: RegisterPayloadRegistration payload.
Heartbeat
CLI to Backend: Status update with agents
Fields
§
payload: HeartbeatPayloadHeartbeat payload with agent info.
Stream
CLI to Backend: Agent output stream
Fields
§
payload: StreamPayloadStream chunk payload.
CommandResult
CLI to Backend: Result of a command
Fields
§
payload: CommandResultPayloadCommand result payload.
Event
CLI to Backend: Agent event
Fields
§
payload: EventPayloadAgent event payload.
Command
Backend to CLI: Command to execute
Fields
§
payload: CommandPayloadCommand payload from backend.
Ping
Backend to CLI: Ping
Fields
§
payload: PingPongPayloadPing payload with timestamp.
Pong
CLI to Backend: Pong
Fields
§
payload: PingPongPayloadPong payload with timestamp.
Disconnect
CLI to Backend: Graceful disconnect notification
Fields
§
payload: DisconnectPayloadDisconnect payload with reason.
Trait Implementations§
Source§impl Clone for RemoteRealtimeMessage
impl Clone for RemoteRealtimeMessage
Source§fn clone(&self) -> RemoteRealtimeMessage
fn clone(&self) -> RemoteRealtimeMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 RemoteRealtimeMessage
impl Debug for RemoteRealtimeMessage
Source§impl<'de> Deserialize<'de> for RemoteRealtimeMessage
impl<'de> Deserialize<'de> for RemoteRealtimeMessage
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
Auto Trait Implementations§
impl Freeze for RemoteRealtimeMessage
impl RefUnwindSafe for RemoteRealtimeMessage
impl Send for RemoteRealtimeMessage
impl Sync for RemoteRealtimeMessage
impl Unpin for RemoteRealtimeMessage
impl UnsafeUnpin for RemoteRealtimeMessage
impl UnwindSafe for RemoteRealtimeMessage
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