Skip to main content

RequestWithBodyExt

Trait RequestWithBodyExt 

Source
pub trait RequestWithBodyExt<'a>: Sized {
    type B: IntoNonUnitRequestBody;

    // Required method
    fn send_with_client_config(
        self,
        client_config: Arc<ClientConfig>,
    ) -> RequestSend<'a> ;

    // Provided method
    fn send(self) -> RequestSend<'a>  { ... }
}

Required Associated Types§

Source

type B: IntoNonUnitRequestBody

Required Methods§

Source

fn send_with_client_config( self, client_config: Arc<ClientConfig>, ) -> RequestSend<'a>

Provided Methods§

Source

fn send(self) -> 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, T: IntoNonUnitRequestBody + 'a> RequestWithBodyExt<'a> for Request<T>

Source§

type B = T

Source§

fn send_with_client_config( self, client_config: Arc<ClientConfig>, ) -> RequestSend<'a>

Implementors§