INNER CODE UNIT · Rust
respond_permission
xuzhougeng/wisp-science · crates/wisp-acp/src/lib.rs:364
pub fn respond_permission(
&self,
request_id: impl Into<String>,
option_id: Option<String>,
) -> Result<(), AcpError> {
self.command_tx
.send(Command::RespondPermission(request_id.into(), option_id))
.map_err(|_| AcpError::Closed)
}
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