struct TakeState {
asr_parts: Vec<String>,
window_records: Vec<WindowRecord>,
truncated: bool,
failure: Option<Error>,
recognition_error: Option<(usize, String)>,
}Expand description
The take’s accumulated state across its windows.
Extracted from the loop so the side effects of each outcome can be
tested: a FinalizeWithError keeps the take alive, a Failed fails it.
Fields§
§asr_parts: Vec<String>§window_records: Vec<WindowRecord>§truncated: bool§failure: Option<Error>§recognition_error: Option<(usize, String)>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TakeState
impl !UnwindSafe for TakeState
impl Freeze for TakeState
impl Send for TakeState
impl Sync for TakeState
impl Unpin for TakeState
impl UnsafeUnpin for TakeState
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