Skip to main content

RequestWithoutBodyExt

Trait RequestWithoutBodyExt 

Source
pub trait RequestWithoutBodyExt<'a>: Sized {
    // Required method
    fn send_with_client_config<B: IntoRequestBody + 'a>(
        &self,
        body: B,
        client_config: Arc<ClientConfig>,
    ) -> RequestSend<'a> ;

    // Provided method
    fn send<B: IntoRequestBody + 'a>(&self, body: B) -> RequestSend<'a>  { ... }
}

Required Methods§

Source

fn send_with_client_config<B: IntoRequestBody + 'a>( &self, body: B, client_config: Arc<ClientConfig>, ) -> RequestSend<'a>

Provided Methods§

Source

fn send<B: IntoRequestBody + 'a>(&self, body: B) -> RequestSend<'a>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a> RequestWithoutBodyExt<'a> for Request<()>

Source§

fn send_with_client_config<B: IntoRequestBody + 'a>( &self, body: B, client_config: Arc<ClientConfig>, ) -> RequestSend<'a>

Implementors§