pub enum SessionOutput {
Control(RhpServerMsg),
Audio(Vec<u8>),
}Expand description
What the session wants the WS pump to send back to the device. The pump serializes control variants to TEXT frames and audio to BINARY frames.
Variants§
Control(RhpServerMsg)
A control message to serialize and send.
Audio(Vec<u8>)
One Opus packet of TTS audio (24 kHz, 60 ms) to send as a BINARY frame.
Auto Trait Implementations§
impl Freeze for SessionOutput
impl RefUnwindSafe for SessionOutput
impl Send for SessionOutput
impl Sync for SessionOutput
impl Unpin for SessionOutput
impl UnsafeUnpin for SessionOutput
impl UnwindSafe for SessionOutput
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