pub enum ReactorEvent {
Live(LiveEvent),
StateChanged(Vec<StateMutation>),
TimerTick {
now: Instant,
},
PlaybackDrained {
prompt_pending: bool,
},
UserSpeechStarted,
UserSpeechEnded {
prompt_pending: bool,
},
SoftTurnComplete,
}Expand description
A normalized event that can drive ADK-level reactions.
Variants§
Live(LiveEvent)
Existing semantic Live event.
StateChanged(Vec<StateMutation>)
State changed since the last reactor cursor.
TimerTick
Periodic tick for timers and sustained conditions.
PlaybackDrained
Client-side playback drained after model audio was generated.
UserSpeechStarted
Client detected that the user started speaking.
UserSpeechEnded
Client detected that the user stopped speaking.
SoftTurnComplete
User speech ended, but the model may or may not produce a turn.
Trait Implementations§
Source§impl Clone for ReactorEvent
impl Clone for ReactorEvent
Source§fn clone(&self) -> ReactorEvent
fn clone(&self) -> ReactorEvent
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 moreAuto Trait Implementations§
impl !Freeze for ReactorEvent
impl RefUnwindSafe for ReactorEvent
impl Send for ReactorEvent
impl Sync for ReactorEvent
impl Unpin for ReactorEvent
impl UnwindSafe for ReactorEvent
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