pub struct AudioState {
pub total_transcriptions: u64,
pub total_duration_ms: u64,
pub total_errors: u64,
pub avg_confidence: f64,
pub avg_latency_ms: f64,
}Expand description
Tracks cumulative audio transcription statistics.
Fields§
§total_transcriptions: u64§total_duration_ms: u64§total_errors: u64§avg_confidence: f64§avg_latency_ms: f64Implementations§
Source§impl AudioState
impl AudioState
pub fn record(&mut self, event: &AudioEvent)
pub fn record_error(&mut self)
Trait Implementations§
Source§impl AiSemantic for AudioState
impl AiSemantic for AudioState
Source§impl Clone for AudioState
impl Clone for AudioState
Source§fn clone(&self) -> AudioState
fn clone(&self) -> AudioState
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 AudioState
impl Debug for AudioState
Source§impl Default for AudioState
impl Default for AudioState
Source§fn default() -> AudioState
fn default() -> AudioState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AudioState
impl<'de> Deserialize<'de> for AudioState
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 AudioState
impl RefUnwindSafe for AudioState
impl Send for AudioState
impl Sync for AudioState
impl Unpin for AudioState
impl UnsafeUnpin for AudioState
impl UnwindSafe for AudioState
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