pub enum RhpServerMsg {
HelloAck {
session_id: String,
ambient_session_id: Option<String>,
tts: AudioFormat,
},
Stt {
text: String,
final_: bool,
},
ChatDelta {
text: String,
},
ChatEnd {
conversation_id: String,
},
Emotion {
value: Emotion,
},
TtsStart,
TtsEnd,
AmbientAck {
segment_id: String,
},
AmbientSkip {
reason: String,
},
Display {
surface: Surface,
widget: String,
payload: Value,
},
Error {
code: String,
message: String,
},
Pong,
}Expand description
Every control message the node sends to a device/relay, tagged on type.
Variants§
HelloAck
Acknowledges hello; carries session ids and the TTS downlink format.
Fields
§
ambient_session_id: Option<String>Present (long-running meeting id) only if the device is ambient-capable.
§
tts: AudioFormatStt
Live transcript of the user’s speech (display it). final_ serializes as
the wire name final (a Rust keyword), via the explicit field rename.
ChatDelta
One streamed assistant-token chunk.
ChatEnd
End of the streamed assistant turn.
Emotion
Face state change.
TtsStart
TTS audio is about to stream as BINARY Opus frames.
TtsEnd
End of the TTS audio stream.
AmbientAck
An ambient chunk was transcribed and indexed.
AmbientSkip
An ambient chunk was skipped (e.g. silence).
Display
Desk ambient/e-ink display update. payload is widget-specific JSON.
Error
Protocol or processing error.
Pong
Liveness response.
Trait Implementations§
Source§impl Clone for RhpServerMsg
impl Clone for RhpServerMsg
Source§fn clone(&self) -> RhpServerMsg
fn clone(&self) -> RhpServerMsg
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 RhpServerMsg
impl Debug for RhpServerMsg
Source§impl<'de> Deserialize<'de> for RhpServerMsg
impl<'de> Deserialize<'de> for RhpServerMsg
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 RhpServerMsg
impl PartialEq for RhpServerMsg
Source§impl Serialize for RhpServerMsg
impl Serialize for RhpServerMsg
impl StructuralPartialEq for RhpServerMsg
Auto Trait Implementations§
impl Freeze for RhpServerMsg
impl RefUnwindSafe for RhpServerMsg
impl Send for RhpServerMsg
impl Sync for RhpServerMsg
impl Unpin for RhpServerMsg
impl UnsafeUnpin for RhpServerMsg
impl UnwindSafe for RhpServerMsg
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