pub struct VoiceRuntimeState {
pub user_speaking: bool,
pub playback_active: bool,
pub prompt_pending: bool,
pub prompt_epoch: u64,
pub last_barge_in_at: Option<Instant>,
pub last_playback_drained_at: Option<Instant>,
}Expand description
Voice-flow state owned by the reactor.
Fields§
§user_speaking: boolWhether the client believes the user is currently speaking.
playback_active: boolWhether browser playback is believed to be active.
prompt_pending: boolWhether a deferred model prompt is armed.
prompt_epoch: u64Monotonic epoch bumped whenever a prompt is cancelled or armed state changes.
last_barge_in_at: Option<Instant>Last time the client reported barge-in/user speech start.
last_playback_drained_at: Option<Instant>Last time browser playback reported drained.
Implementations§
Source§impl VoiceRuntimeState
impl VoiceRuntimeState
Sourcepub fn apply_event(&mut self, event: &ReactorEvent)
pub fn apply_event(&mut self, event: &ReactorEvent)
Apply an incoming event to the voice runtime state before rules run.
Trait Implementations§
Source§impl Clone for VoiceRuntimeState
impl Clone for VoiceRuntimeState
Source§fn clone(&self) -> VoiceRuntimeState
fn clone(&self) -> VoiceRuntimeState
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 VoiceRuntimeState
impl Debug for VoiceRuntimeState
Source§impl Default for VoiceRuntimeState
impl Default for VoiceRuntimeState
Source§fn default() -> VoiceRuntimeState
fn default() -> VoiceRuntimeState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VoiceRuntimeState
impl RefUnwindSafe for VoiceRuntimeState
impl Send for VoiceRuntimeState
impl Sync for VoiceRuntimeState
impl Unpin for VoiceRuntimeState
impl UnwindSafe for VoiceRuntimeState
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