Struct viz_core::types::Payload [−][src]
pub struct Payload<T = ()> { /* fields omitted */ }
Expand description
Payload Body
Implementations
1MB
8KB
Checks the content-type and content-length of request.
pub async fn check_real_length<S>(
&self,
stream: S
) -> Result<impl Buf, PayloadError> where
S: Stream<Item = Result<Bytes, Error>> + Unpin,
pub async fn check_real_length<S>(
&self,
stream: S
) -> Result<impl Buf, PayloadError> where
S: Stream<Item = Result<Bytes, Error>> + Unpin,
Checks the real length of request body.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Payload<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Payload<T> where
T: UnwindSafe,