RenderedBodyType

Trait RenderedBodyType 

Source
pub trait RenderedBodyType: RenderedBodyTypeSealed { }
Expand description

A utility trait, used to control the kind of body Rendered contains.

This trait is only implemented by two types:

  • (), when a request must return an empty body (i.e, HEAD)
  • RenderedBody, when a request should return a full response (i.e, GET)

Implementors§

Source§

impl<T: RenderedBodyTypeSealed> RenderedBodyType for T