Skip to main content

TaskHost

Trait TaskHost 

Source
pub trait TaskHost: Send + Sync {
    // Required method
    fn session(
        &self,
        request: &TaskRequest,
        approver: Arc<dyn Approver>,
    ) -> Result<AgentSession, RemoteError>;
}
Expand description

What the serving app offers: a session for the requested companion, built with the given approver (which forwards cards to the asker). Refuse companions that do not run here.

Required Methods§

Source

fn session( &self, request: &TaskRequest, approver: Arc<dyn Approver>, ) -> Result<AgentSession, RemoteError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§