pub trait AgentRequest {
type Response;
// Required methods
fn into_any(self) -> AnyAgentRequest;
fn response_from_any(any: AnyAgentResult) -> Result<Self::Response, Error>;
}
Required Associated Types§
Required Methods§
fn into_any(self) -> AnyAgentRequest
fn response_from_any(any: AnyAgentResult) -> Result<Self::Response, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.