pub enum SendHttpError {
UnexpectedEof,
ParseResponseHeaders(Error),
ReadStream(ReadStreamError),
ReadStreamChunks(ReadStreamChunksError),
ReadStreamExact(ReadStreamExactError),
ReadStreamToEnd(ReadStreamToEndError),
WriteStream(WriteStreamError),
}
Expand description
Errors that can occur during the coroutine progression.
Variants§
UnexpectedEof
The coroutine unexpectedly reached the End Of File.
ParseResponseHeaders(Error)
The HTTP headers could not be parsed.
ReadStream(ReadStreamError)
ReadStreamChunks(ReadStreamChunksError)
ReadStreamExact(ReadStreamExactError)
ReadStreamToEnd(ReadStreamToEndError)
WriteStream(WriteStreamError)
Trait Implementations§
Source§impl Debug for SendHttpError
impl Debug for SendHttpError
Source§impl Display for SendHttpError
impl Display for SendHttpError
Source§impl Error for SendHttpError
impl Error for SendHttpError
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<ReadStreamChunksError> for SendHttpError
impl From<ReadStreamChunksError> for SendHttpError
Source§fn from(source: ReadStreamChunksError) -> Self
fn from(source: ReadStreamChunksError) -> Self
Converts to this type from the input type.
Source§impl From<ReadStreamError> for SendHttpError
impl From<ReadStreamError> for SendHttpError
Source§fn from(source: ReadStreamError) -> Self
fn from(source: ReadStreamError) -> Self
Converts to this type from the input type.
Source§impl From<ReadStreamExactError> for SendHttpError
impl From<ReadStreamExactError> for SendHttpError
Source§fn from(source: ReadStreamExactError) -> Self
fn from(source: ReadStreamExactError) -> Self
Converts to this type from the input type.
Source§impl From<ReadStreamToEndError> for SendHttpError
impl From<ReadStreamToEndError> for SendHttpError
Source§fn from(source: ReadStreamToEndError) -> Self
fn from(source: ReadStreamToEndError) -> Self
Converts to this type from the input type.
Source§impl From<SendHttpError> for FollowHttpRedirectsError
impl From<SendHttpError> for FollowHttpRedirectsError
Source§fn from(source: SendHttpError) -> Self
fn from(source: SendHttpError) -> Self
Converts to this type from the input type.
Source§impl From<WriteStreamError> for SendHttpError
impl From<WriteStreamError> for SendHttpError
Source§fn from(source: WriteStreamError) -> Self
fn from(source: WriteStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SendHttpError
impl RefUnwindSafe for SendHttpError
impl Send for SendHttpError
impl Sync for SendHttpError
impl Unpin for SendHttpError
impl UnwindSafe for SendHttpError
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