Enum ExtractionTrigger
pub enum ExtractionTrigger {
EveryTurn,
Interval(u32),
AfterToolCall,
OnPhaseChange,
OnGenerationComplete,
}Expand description
Controls WHEN an extractor runs.
The default is EveryTurn, which preserves backward compatibility.
Use AfterToolCall when tool calls are the primary state source,
Interval(n) to reduce extraction frequency, or OnPhaseChange
to extract only when entering a new conversation phase.
Variants§
EveryTurn
Run on every TurnComplete event (current default).
Interval(u32)
Run every N TurnComplete events.
AfterToolCall
Run after tool calls complete.
OnPhaseChange
Run when a phase transition occurs.
OnGenerationComplete
Run on GenerationComplete — before interruption truncation.
Use this to extract from the model’s full intended output, even if the user barged in and the audio delivery was interrupted.
Trait Implementations§
§impl Clone for ExtractionTrigger
impl Clone for ExtractionTrigger
§fn clone(&self) -> ExtractionTrigger
fn clone(&self) -> ExtractionTrigger
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 more§impl Debug for ExtractionTrigger
impl Debug for ExtractionTrigger
§impl PartialEq for ExtractionTrigger
impl PartialEq for ExtractionTrigger
impl Eq for ExtractionTrigger
impl StructuralPartialEq for ExtractionTrigger
Auto Trait Implementations§
impl Freeze for ExtractionTrigger
impl RefUnwindSafe for ExtractionTrigger
impl Send for ExtractionTrigger
impl Sync for ExtractionTrigger
impl Unpin for ExtractionTrigger
impl UnwindSafe for ExtractionTrigger
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more