pub enum RhpClientMsg {
Hello {
device_id: String,
device_type: DeviceType,
fw_version: String,
relay: bool,
audio: AudioFormat,
caps: Caps,
},
Mode {
value: Mode,
},
Listen {
state: ListenState,
},
Text {
content: String,
},
Abort,
CameraMeta {
w: u32,
h: u32,
fmt: String,
bytes: u32,
},
Telemetry {
battery_pct: i32,
rssi: i32,
charging: bool,
},
Ping,
}Expand description
Every control message a device/relay sends to the node, tagged on type.
Variants§
Hello
First frame on connect; identifies the device and its capabilities.
Mode
Device operating-mode change.
Listen
Chat-turn boundary.
Fields
§
state: ListenStateText
Typed/derived text input (fallback path).
Abort
Barge-in: stop current TTS + generation.
CameraMeta
Announces that the next BINARY frame is a JPEG of these dimensions.
Telemetry
Periodic device telemetry.
Ping
Liveness probe.
Trait Implementations§
Source§impl Clone for RhpClientMsg
impl Clone for RhpClientMsg
Source§fn clone(&self) -> RhpClientMsg
fn clone(&self) -> RhpClientMsg
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 RhpClientMsg
impl Debug for RhpClientMsg
Source§impl<'de> Deserialize<'de> for RhpClientMsg
impl<'de> Deserialize<'de> for RhpClientMsg
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 RhpClientMsg
impl PartialEq for RhpClientMsg
Source§impl Serialize for RhpClientMsg
impl Serialize for RhpClientMsg
impl StructuralPartialEq for RhpClientMsg
Auto Trait Implementations§
impl Freeze for RhpClientMsg
impl RefUnwindSafe for RhpClientMsg
impl Send for RhpClientMsg
impl Sync for RhpClientMsg
impl Unpin for RhpClientMsg
impl UnsafeUnpin for RhpClientMsg
impl UnwindSafe for RhpClientMsg
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