Skip to main content

Reply

Trait Reply 

Source
pub trait Reply: Send {
    // Required method
    fn into_response(self) -> Response<Bytes>;
}
Expand description

A value that can be converted into a fully-formed HTTP response.

Implemented for all types returned by the [reply!] macro and the standalone reply helpers. You may also implement it for your own types.

Required Methods§

Source

fn into_response(self) -> Response<Bytes>

Consumes self and returns a complete HTTP response.

Implementations on Foreign Types§

Source§

impl Reply for Response<Bytes>

Implementors§