pub trait IntoTranscodingResponse<BodyT>: Sized{
// Required methods
fn with_transcoding_body_passthrough_with_first_bytes(
self,
first_bytes: Option<Bytes>,
) -> Response<TranscodingBody<BodyT>>;
fn with_transcoding_body_with_first_bytes(
self,
first_bytes: Option<Bytes>,
encoding: &Encoding,
encodable_by_default: bool,
) -> Response<TranscodingBody<BodyT>>;
// Provided methods
fn with_transcoding_body_passthrough(
self,
) -> Response<TranscodingBody<BodyT>> { ... }
fn with_transcoding_body(
self,
encoding: &Encoding,
encodable_by_default: bool,
) -> Response<TranscodingBody<BodyT>> { ... }
}
Expand description
Into a Response with a TranscodingBody.
Required Methods§
Sourcefn with_transcoding_body_passthrough_with_first_bytes(
self,
first_bytes: Option<Bytes>,
) -> Response<TranscodingBody<BodyT>>
fn with_transcoding_body_passthrough_with_first_bytes( self, first_bytes: Option<Bytes>, ) -> Response<TranscodingBody<BodyT>>
Into a Response with a passthrough TranscodingBody.
Sourcefn with_transcoding_body_with_first_bytes(
self,
first_bytes: Option<Bytes>,
encoding: &Encoding,
encodable_by_default: bool,
) -> Response<TranscodingBody<BodyT>>
fn with_transcoding_body_with_first_bytes( self, first_bytes: Option<Bytes>, encoding: &Encoding, encodable_by_default: bool, ) -> Response<TranscodingBody<BodyT>>
Into a Response with an encoding TranscodingBody.
Provided Methods§
Sourcefn with_transcoding_body_passthrough(self) -> Response<TranscodingBody<BodyT>>
fn with_transcoding_body_passthrough(self) -> Response<TranscodingBody<BodyT>>
Into a Response with a passthrough TranscodingBody.
Sourcefn with_transcoding_body(
self,
encoding: &Encoding,
encodable_by_default: bool,
) -> Response<TranscodingBody<BodyT>>
fn with_transcoding_body( self, encoding: &Encoding, encodable_by_default: bool, ) -> Response<TranscodingBody<BodyT>>
Into a Response with an encoding TranscodingBody.
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.