INNER CODE UNIT · Rust
set_config
xuzhougeng/wisp-science · crates/wisp-acp/src/lib.rs:374
pub async fn set_config(
&self,
session_id: SessionId,
config_id: impl Into<String>,
value: SessionConfigOptionValue,
) -> Result<Vec<SessionConfigOption>, AcpError> {
self.request(|reply| Command::SetConfig(session_id, config_id.into(), value, reply))
.await
}
pub async fn set_mode(
&self,
session_id: SessionId,
mode_id: impl Into<String>,
) -> Result<(), AcpError> {
self.request(|reply| Command::SetMode(session_id, mode_id.into(), reply))
.await
}