pub enum InvalidContentLengthReason {
MissingContentLength,
MalformedContentLength,
}Expand description
The reason why Error::InvalidContentLength was returned
Variants§
MissingContentLength
No Content-Length header was found
MalformedContentLength
The Content-Length error wasn’t an integer, or couldn’t be read as one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InvalidContentLengthReason
impl RefUnwindSafe for InvalidContentLengthReason
impl Send for InvalidContentLengthReason
impl Sync for InvalidContentLengthReason
impl Unpin for InvalidContentLengthReason
impl UnwindSafe for InvalidContentLengthReason
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