pub enum ConnectionError {
ConnectionClosed,
InvalidWrite,
ParseError(RequestError),
StreamReadError(SysError),
StreamWriteError(Error),
}
Expand description
Errors associated with a HTTP Connection.
Variants§
ConnectionClosed
Attempted to read or write on a closed connection.
InvalidWrite
Attempted to write on a stream when there was nothing to write.
ParseError(RequestError)
The request parsing has failed.
StreamReadError(SysError)
Could not perform a read operation from stream successfully.
StreamWriteError(Error)
Could not perform a write operation to stream successfully.
Trait Implementations§
Source§impl Debug for ConnectionError
impl Debug for ConnectionError
Auto Trait Implementations§
impl Freeze for ConnectionError
impl !RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl !UnwindSafe for ConnectionError
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