pub enum AcpEvent {
SessionUpdate(Box<SessionUpdate>),
ExtNotification(ExtNotification),
ElicitationRequest {
params: ElicitationParams,
response_tx: Sender<ElicitationResponse>,
},
PromptDone(StopReason),
PromptError(Error),
AuthenticateComplete {
method_id: String,
},
AuthenticateFailed {
method_id: String,
error: String,
},
SessionsListed {
sessions: Vec<SessionInfo>,
},
SessionLoaded {
session_id: SessionId,
config_options: Vec<SessionConfigOption>,
},
NewSessionCreated {
session_id: SessionId,
config_options: Vec<SessionConfigOption>,
},
ConnectionClosed,
}Expand description
Events forwarded from the ACP connection to the main event loop.
Variants§
SessionUpdate(Box<SessionUpdate>)
ExtNotification(ExtNotification)
ElicitationRequest
PromptDone(StopReason)
PromptError(Error)
AuthenticateComplete
AuthenticateFailed
SessionsListed
Fields
§
sessions: Vec<SessionInfo>SessionLoaded
NewSessionCreated
ConnectionClosed
Auto Trait Implementations§
impl Freeze for AcpEvent
impl !RefUnwindSafe for AcpEvent
impl Send for AcpEvent
impl Sync for AcpEvent
impl Unpin for AcpEvent
impl UnsafeUnpin for AcpEvent
impl !UnwindSafe for AcpEvent
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