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 Eventwhere
*const ArcInner<Canvas> is !null: Freeze,
PhantomData<ArcInner<Canvas>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TranscriptEntry>: Freeze,
PhantomData<u64>: Freeze,
*const TurnFailure is !null: Freeze,
PhantomData<TurnFailure>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(u64, String)>: Freeze,
PhantomData<ModelChoice>: Freeze,
PhantomData<Choice>: Freeze,
PhantomData<SessionSummary>: Freeze,
PhantomData<SlashCommand>: Freeze,
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Eventwhere
*const ArcInner<Canvas> is !null: UnsafeUnpin,
PhantomData<ArcInner<Canvas>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TranscriptEntry>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
*const TurnFailure is !null: UnsafeUnpin,
PhantomData<TurnFailure>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(u64, String)>: UnsafeUnpin,
PhantomData<ModelChoice>: UnsafeUnpin,
PhantomData<Choice>: UnsafeUnpin,
PhantomData<SessionSummary>: UnsafeUnpin,
PhantomData<SlashCommand>: UnsafeUnpin,
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