pub enum ClientEvent {
SessionUpdate(SessionUpdate),
PermissionRequest {
request: RequestPermissionRequest,
response_tx: Sender<RequestPermissionResponse>,
},
TurnComplete,
TurnCancelled,
TurnError(String),
Connected {
session_id: SessionId,
model_name: String,
mode: Option<ModeState>,
},
ConnectionFailed(String),
AuthRequired {
method_name: String,
method_description: String,
},
SlashCommandError(String),
SessionReplaced {
session_id: SessionId,
model_name: String,
mode: Option<ModeState>,
},
}Expand description
Messages sent from the ACP Client impl to the App/UI layer.
Variants§
SessionUpdate(SessionUpdate)
Session update notification (streaming text, tool calls, etc.)
PermissionRequest
Permission request that needs user input.
TurnComplete
A prompt turn completed successfully.
TurnCancelled
cancel notification was accepted by the adapter.
TurnError(String)
A prompt turn failed with an error.
Connected
Background connection completed successfully.
ConnectionFailed(String)
Background connection failed.
AuthRequired
Authentication is required before a session can be created.
SlashCommandError(String)
Slash-command execution failed with a user-facing error.
SessionReplaced
Custom slash command replaced the active ACP session.
Auto Trait Implementations§
impl Freeze for ClientEvent
impl !RefUnwindSafe for ClientEvent
impl Send for ClientEvent
impl Sync for ClientEvent
impl Unpin for ClientEvent
impl UnsafeUnpin for ClientEvent
impl !UnwindSafe for ClientEvent
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more