pub struct VoiceWsEvent {
pub event: String,
pub status: VoiceStatus,
pub timestamp: u64,
}Expand description
WebSocket event for voice status changes.
Sent to connected WebSocket clients whenever the voice pipeline transitions between states (idle, listening, transcribing, processing, speaking).
Fields§
§event: StringEvent type identifier. Always "voice:status".
status: VoiceStatusCurrent voice pipeline status.
timestamp: u64Unix timestamp in milliseconds when the event occurred.
Implementations§
Source§impl VoiceWsEvent
impl VoiceWsEvent
Sourcepub fn new(status: VoiceStatus) -> Self
pub fn new(status: VoiceStatus) -> Self
Create a new voice status event with the current timestamp.
Trait Implementations§
Source§impl Clone for VoiceWsEvent
impl Clone for VoiceWsEvent
Source§fn clone(&self) -> VoiceWsEvent
fn clone(&self) -> VoiceWsEvent
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 VoiceWsEvent
impl Debug for VoiceWsEvent
Source§impl<'de> Deserialize<'de> for VoiceWsEvent
impl<'de> Deserialize<'de> for VoiceWsEvent
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 VoiceWsEvent
impl RefUnwindSafe for VoiceWsEvent
impl Send for VoiceWsEvent
impl Sync for VoiceWsEvent
impl Unpin for VoiceWsEvent
impl UnsafeUnpin for VoiceWsEvent
impl UnwindSafe for VoiceWsEvent
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