Skip to main content

IntoCodecResponse

Trait IntoCodecResponse 

Source
pub trait IntoCodecResponse: OperationOutput {
    // Required method
    fn into_codec_response(self, content_type: ContentType) -> Response;
}

Required Methods§

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 IntoCodecResponse for &'static str

Source§

impl IntoCodecResponse for &'static [u8]

Source§

impl IntoCodecResponse for Cow<'static, str>

Source§

impl IntoCodecResponse for Cow<'static, [u8]>

Source§

impl IntoCodecResponse for ()

Source§

impl IntoCodecResponse for String

Source§

impl IntoCodecResponse for Vec<u8>

Source§

impl IntoCodecResponse for Bytes

Source§

impl IntoCodecResponse for StatusCode

Source§

impl<B> IntoCodecResponse for Response<B>
where B: HttpBody<Data = Bytes> + Send + 'static, B::Error: Into<BoxError>,

Source§

impl<R> IntoCodecResponse for (StatusCode, R)

Source§

impl<T, E> IntoCodecResponse for Result<T, E>

Implementors§

Source§

impl IntoCodecResponse for CodecRejection

Available on crate feature pretty-errors only.
Source§

impl<D> IntoCodecResponse for Codec<D>
where D: CodecEncode, Self: OperationOutput,

Available on crate feature aide only.