pub trait Sensitivity {
    type RequestFmt: for<'a> MakeDebug<&'a HeaderMap> + for<'a> MakeDisplay<&'a Uri>;
    type ResponseFmt: for<'a> MakeDebug<&'a HeaderMap> + MakeDisplay<StatusCode>;

    // Required methods
    fn request_fmt() -> Self::RequestFmt;
    fn response_fmt() -> Self::ResponseFmt;
}
Expand description

An interface for providing MakeDebug and MakeDisplay for Request and Response.

Required Associated Types§

source

type RequestFmt: for<'a> MakeDebug<&'a HeaderMap> + for<'a> MakeDisplay<&'a Uri>

The MakeDebug and MakeDisplay for the request HeaderMap and Uri.

source

type ResponseFmt: for<'a> MakeDebug<&'a HeaderMap> + MakeDisplay<StatusCode>

The MakeDebug and MakeDisplay for the response HeaderMap and StatusCode.

Required Methods§

source

fn request_fmt() -> Self::RequestFmt

Returns the RequestFmt.

source

fn response_fmt() -> Self::ResponseFmt

Returns the ResponseFmt.

Object Safety§

This trait is not object safe.

Implementors§