Trait Sensitivity

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§