pub enum AssistantState {
Idle,
Listening,
Processing,
Speaking,
}Expand description
Current operational state of the voice assistant.
Variants§
Idle
Waiting for a wake word (or for listen_once to be called).
Listening
Capturing user speech.
Processing
Running STT + calling the handler.
Speaking
Playing back a TTS response.
Trait Implementations§
Source§impl Clone for AssistantState
impl Clone for AssistantState
Source§fn clone(&self) -> AssistantState
fn clone(&self) -> AssistantState
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 moreimpl Copy for AssistantState
Source§impl Debug for AssistantState
impl Debug for AssistantState
impl Eq for AssistantState
Source§impl PartialEq for AssistantState
impl PartialEq for AssistantState
impl StructuralPartialEq for AssistantState
Auto Trait Implementations§
impl Freeze for AssistantState
impl RefUnwindSafe for AssistantState
impl Send for AssistantState
impl Sync for AssistantState
impl Unpin for AssistantState
impl UnsafeUnpin for AssistantState
impl UnwindSafe for AssistantState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.