Skip to main content

SendExt

Trait SendExt 

Source
pub trait SendExt<T> {
    // Required method
    fn send<D: Destination>(
        self,
        destination: D,
    ) -> impl Future<Output = Result<Response<Bytes>, HandlerError>> + Send;
}

Required Methods§

Source

fn send<D: Destination>( self, destination: D, ) -> impl Future<Output = Result<Response<Bytes>, HandlerError>> + Send

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<T: IntoBody> SendExt<T> for Request<T>

Source§

async fn send<D: Destination>( self, destination: D, ) -> Result<Response<Bytes>, HandlerError>

Source§

impl<T: IntoBody> SendExt<T> for Result<Request<T>, Error>

Source§

async fn send<D: Destination>( self, destination: D, ) -> Result<Response<Bytes>, HandlerError>

Implementors§