pub enum ServerFrame {
Paired {
agent: String,
},
Rejected {
reason: String,
},
Event {
name: String,
payload: Value,
},
Transcript {
text: String,
is_final: bool,
},
AudioChunk {
base64: String,
sample_rate: u32,
done: bool,
},
}Expand description
Frames the Mac endpoint sends back to the phone.
Variants§
Paired
Handshake accepted; the phone is now paired with agent.
Rejected
The handshake or a later frame was rejected.
Event
An asynchronous event mirrored to the phone. name is dot-namespaced
(mobile.transcript, mobile.reply, …) to match the Hub EventBus
names used for desktop mirroring.
Transcript
Mac whisper.cpp authoritative transcript for the user’s just-spoken
utterance. Overrides the on-device SFSpeech partial. is_final: true
means this is the definitive text for this turn.
AudioChunk
A chunk of Kokoro TTS audio (f32 LE PCM, 24 kHz mono). The phone
accumulates chunks until done: true, then plays them back.
base64 is the standard base64 encoding of the raw bytes.
Trait Implementations§
Source§impl Debug for ServerFrame
impl Debug for ServerFrame
Source§impl<'de> Deserialize<'de> for ServerFrame
impl<'de> Deserialize<'de> for ServerFrame
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 ServerFrame
impl RefUnwindSafe for ServerFrame
impl Send for ServerFrame
impl Sync for ServerFrame
impl Unpin for ServerFrame
impl UnsafeUnpin for ServerFrame
impl UnwindSafe for ServerFrame
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