pub enum ReadBoundedError {
TooLarge {
max_bytes: usize,
},
Transport(Error),
Io(Error),
}Expand description
Why read_bounded did not return a body.
Variants§
TooLarge
The body is larger than the bound it was read against – either a
declared Content-Length over the bound, refused before reading
anything, or a body that crossed the bound while being read, which
happens the moment it does rather than after it finishes.
Transport(Error)
The connection or the HTTP exchange itself failed while reading.
Io(Error)
The same, for a blocking response, which reports through
std::io rather than through reqwest.
Trait Implementations§
Source§impl Debug for ReadBoundedError
impl Debug for ReadBoundedError
Source§impl Display for ReadBoundedError
impl Display for ReadBoundedError
Source§impl Error for ReadBoundedError
impl Error for ReadBoundedError
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<Error> for ReadBoundedError
impl From<Error> for ReadBoundedError
Auto Trait Implementations§
impl Freeze for ReadBoundedError
impl !RefUnwindSafe for ReadBoundedError
impl Send for ReadBoundedError
impl Sync for ReadBoundedError
impl Unpin for ReadBoundedError
impl UnsafeUnpin for ReadBoundedError
impl !UnwindSafe for ReadBoundedError
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