pub struct Encoder<B> { /* private fields */ }Implementations§
Source§impl<B: MessageBody> Encoder<B>
impl<B: MessageBody> Encoder<B>
pub fn response( encoding: ContentEncoding, head: &mut ResponseHead, body: ResponseBody<B>, ) -> ResponseBody<B>
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Encoder<B>where
B: Freeze,
impl<B> !RefUnwindSafe for Encoder<B>
impl<B> !Send for Encoder<B>
impl<B> !Sync for Encoder<B>
impl<B> Unpin for Encoder<B>where
B: Unpin,
impl<B> !UnwindSafe for Encoder<B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more