pub enum Event {
Chat {
chat: ChatId,
event: ChatEvent,
},
Restore {
tabs: Vec<(ChatId, String)>,
active: ChatId,
},
Models(Vec<ModelChoice>),
Agents(Vec<Choice>),
Sessions(Vec<SessionSummary>),
Commands(Vec<SlashCommand>),
Error(String),
SignInRequired(SignInOffer),
Notice(String),
}Variants§
Chat
Restore
The tabs the runtime reopened at start, with the chat ids it assigned. The panel continues numbering after the highest of them.
Models(Vec<ModelChoice>)
Agents(Vec<Choice>)
Sessions(Vec<SessionSummary>)
Commands(Vec<SlashCommand>)
Error(String)
A failure that belongs to no single chat, such as a startup error.
SignInRequired(SignInOffer)
The chat has no GitHub account that works, and the panel can offer a sign-in that would fix it.
Notice(String)
A finished global action, such as an export, worth one line of text.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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