INNER CODE UNIT · Rust

cancel

xuzhougeng/wisp-science · crates/wisp-acp/src/lib.rs:358

    pub fn cancel(&self, session_id: SessionId) -> Result<(), AcpError> {
        self.command_tx
            .send(Command::Cancel(session_id))
            .map_err(|_| AcpError::Closed)
    }

    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,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…