pub enum AppEvent {
Input(InputEvent),
SseConnected,
SseDisconnected(Option<String>),
PermissionAsked(PermissionRequest),
PermissionReplied {
session_id: String,
request_id: String,
reply: String,
},
QuestionAsked(QuestionRequest),
QuestionReplied {
session_id: String,
request_id: String,
answers: Vec<Vec<String>>,
},
QuestionRejected {
session_id: String,
request_id: String,
},
AudioChunk {
rms_energy: f32,
},
RecoverFromError,
Shutdown,
}Expand description
Application-wide events flowing through the main event loop channel.
Variants§
Input(InputEvent)
SseConnected
SseDisconnected(Option<String>)
PermissionAsked(PermissionRequest)
PermissionReplied
QuestionAsked(QuestionRequest)
QuestionReplied
QuestionRejected
AudioChunk
RecoverFromError
Sent after a 3-second delay to transition back to Idle from Error state.
Shutdown
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppEvent
impl RefUnwindSafe for AppEvent
impl Send for AppEvent
impl Sync for AppEvent
impl Unpin for AppEvent
impl UnsafeUnpin for AppEvent
impl UnwindSafe for AppEvent
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