enum WindowAction {
Continue(String),
Truncated(String),
Cancelled,
FinalizeWithError {
message: String,
},
Failed {
message: String,
},
}Expand description
What one window’s run outcome tells the take to do next.
Extracted from the window loop so the decisions can be tested without a loaded model: the loop owns the timings, the records and the reply, while this owns what each outcome means.
Variants§
Continue(String)
Append this text and keep going.
Truncated(String)
Append this partial text and keep going; the take is truncated.
Cancelled
Stop the take: the user cancelled.
FinalizeWithError
Stop the take: this window failed, but earlier windows produced words. The take finalizes what it has, marks itself truncated, and carries the error into diagnostics.
Failed
Stop the take: this window failed and nothing was transcribed, so the take fails.
Trait Implementations§
Source§impl Debug for WindowAction
impl Debug for WindowAction
Source§impl PartialEq for WindowAction
impl PartialEq for WindowAction
impl StructuralPartialEq for WindowAction
Auto Trait Implementations§
impl Freeze for WindowAction
impl RefUnwindSafe for WindowAction
impl Send for WindowAction
impl Sync for WindowAction
impl Unpin for WindowAction
impl UnsafeUnpin for WindowAction
impl UnwindSafe for WindowAction
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