Enum attohttpc::InvalidResponseKind
source · pub enum InvalidResponseKind {
LocationHeader,
RedirectionUrl,
StatusLine,
StatusCode,
Header,
ChunkSize,
Chunk,
ContentLength,
}
Expand description
Errors than can occur while parsing the response from the server.
Variants§
LocationHeader
Invalid or missing Location header in redirection
RedirectionUrl
Invalid redirection URL
StatusLine
Status line
StatusCode
Status code
Header
Error parsing header
ChunkSize
Error decoding chunk size
Chunk
Error decoding chunk
ContentLength
Invalid Content-Length header
Trait Implementations§
source§impl Debug for InvalidResponseKind
impl Debug for InvalidResponseKind
source§impl Display for InvalidResponseKind
impl Display for InvalidResponseKind
source§impl From<InvalidResponseKind> for Error
impl From<InvalidResponseKind> for Error
source§fn from(kind: InvalidResponseKind) -> Error
fn from(kind: InvalidResponseKind) -> Error
Converts to this type from the input type.
source§impl From<InvalidResponseKind> for Error
impl From<InvalidResponseKind> for Error
source§fn from(kind: InvalidResponseKind) -> Error
fn from(kind: InvalidResponseKind) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidResponseKind
impl RefUnwindSafe for InvalidResponseKind
impl Send for InvalidResponseKind
impl Sync for InvalidResponseKind
impl Unpin for InvalidResponseKind
impl UnwindSafe for InvalidResponseKind
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