pub enum PromptCommand {
Prompt {
session_id: SessionId,
text: String,
content: Option<Vec<ContentBlock>>,
},
Cancel {
session_id: SessionId,
},
SetConfigOption {
session_id: SessionId,
config_id: String,
value: String,
},
AuthenticateMcpServer {
session_id: SessionId,
server_name: String,
},
Authenticate {
session_id: SessionId,
method_id: String,
},
ListSessions,
LoadSession {
session_id: SessionId,
cwd: PathBuf,
},
NewSession {
cwd: PathBuf,
},
}Expand description
Commands sent from the main thread to the ACP LocalSet thread.
Variants§
Prompt
Cancel
SetConfigOption
AuthenticateMcpServer
Authenticate
ListSessions
LoadSession
NewSession
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PromptCommand
impl RefUnwindSafe for PromptCommand
impl Send for PromptCommand
impl Sync for PromptCommand
impl Unpin for PromptCommand
impl UnsafeUnpin for PromptCommand
impl UnwindSafe for PromptCommand
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