Skip to main content

Transport

Trait Transport 

Source
pub trait Transport: Sync {
    // Required method
    fn send(
        &self,
        call: &HttpCall,
    ) -> impl Future<Output = Result<HttpResponse, LlmError>> + Send;
}
Expand description

Sends one HTTP call and returns the response as it is (any status).

Required Methods§

Source

fn send( &self, call: &HttpCall, ) -> impl Future<Output = Result<HttpResponse, LlmError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§