pub enum ReadError {
Closed,
Io(Error),
Parse(ParseError),
}Expand description
Reading a request off a connection failed.
Variants§
Closed
The peer closed before (or between) requests — a normal end of stream.
Io(Error)
Socket I/O error.
Parse(ParseError)
The bytes received were not a valid request; the server answers 400.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadError
impl !RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnsafeUnpin for ReadError
impl !UnwindSafe for ReadError
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