pub enum Http11ChunksReadStreamError {
InvalidChunkSize(String),
Eof,
ChunkLineTooLarge(usize),
ChunkTooLarge(usize),
}Expand description
Failure causes during the HTTP/1.1 chunked-body streaming flow.
Variants§
InvalidChunkSize(String)
The chunk size line is not a valid hexadecimal integer.
Eof
The stream reached EOF before the zero-length terminator.
ChunkLineTooLarge(usize)
The chunk size line exceeds HTTP11_MAX_CHUNK_LINE_LEN.
ChunkTooLarge(usize)
A chunk exceeds Http11ChunksReadStream::max_chunk_len.
Trait Implementations§
Source§impl Debug for Http11ChunksReadStreamError
impl Debug for Http11ChunksReadStreamError
Source§impl Error for Http11ChunksReadStreamError
impl Error for Http11ChunksReadStreamError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Http11ChunksReadStreamError> for HttpClientError
Available on crate feature client only.
impl From<Http11ChunksReadStreamError> for HttpClientError
Available on crate feature
client only.Source§fn from(source: Http11ChunksReadStreamError) -> Self
fn from(source: Http11ChunksReadStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Http11ChunksReadStreamError
impl RefUnwindSafe for Http11ChunksReadStreamError
impl Send for Http11ChunksReadStreamError
impl Sync for Http11ChunksReadStreamError
impl Unpin for Http11ChunksReadStreamError
impl UnsafeUnpin for Http11ChunksReadStreamError
impl UnwindSafe for Http11ChunksReadStreamError
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