pub enum ReadStreamChunksError {
UnexpectedEof,
InvalidChunkSize(String),
ReadStream(ReadStreamError),
}
Expand description
Errors that can occur during the coroutine progression.
Variants§
UnexpectedEof
The coroutine unexpectedly reached the End Of File.
InvalidChunkSize(String)
The coroutine could not exactly read n bytes.
ReadStream(ReadStreamError)
Trait Implementations§
Source§impl Debug for ReadStreamChunksError
impl Debug for ReadStreamChunksError
Source§impl Display for ReadStreamChunksError
impl Display for ReadStreamChunksError
Source§impl Error for ReadStreamChunksError
impl Error for ReadStreamChunksError
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 ReadStreamChunksError
impl From<ReadStreamError> for ReadStreamChunksError
Source§fn from(source: ReadStreamError) -> Self
fn from(source: ReadStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReadStreamChunksError
impl RefUnwindSafe for ReadStreamChunksError
impl Send for ReadStreamChunksError
impl Sync for ReadStreamChunksError
impl Unpin for ReadStreamChunksError
impl UnwindSafe for ReadStreamChunksError
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