pub enum HttpBodyStreamError {
NullStream,
SetUserDataFailed(i32),
SetReadCallbackFailed(i32),
NotInitialized,
InitializationFailed(i32),
InvalidReadSize(usize),
ReadFailed(i32),
InvalidReadCount {
count: i32,
capacity: usize,
},
UnexpectedBuffer,
NoProgress,
}Expand description
An error registering, initializing, or reading an HTTP request body stream.
Variants§
NullStream
SetUserDataFailed(i32)
SetReadCallbackFailed(i32)
NotInitialized
InitializationFailed(i32)
InvalidReadSize(usize)
ReadFailed(i32)
InvalidReadCount
UnexpectedBuffer
NoProgress
Trait Implementations§
Source§impl Clone for HttpBodyStreamError
impl Clone for HttpBodyStreamError
impl Copy for HttpBodyStreamError
Source§impl Debug for HttpBodyStreamError
impl Debug for HttpBodyStreamError
Source§impl Display for HttpBodyStreamError
impl Display for HttpBodyStreamError
impl Eq for HttpBodyStreamError
Source§impl Error for HttpBodyStreamError
impl Error for HttpBodyStreamError
1.30.0 · 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 PartialEq for HttpBodyStreamError
impl PartialEq for HttpBodyStreamError
impl StructuralPartialEq for HttpBodyStreamError
Auto Trait Implementations§
impl Forget for HttpBodyStreamError
impl Freeze for HttpBodyStreamError
impl Move for HttpBodyStreamError
impl RefUnwindSafe for HttpBodyStreamError
impl Send for HttpBodyStreamError
impl Sync for HttpBodyStreamError
impl Unpin for HttpBodyStreamError
impl UnsafeUnpin for HttpBodyStreamError
impl UnwindSafe for HttpBodyStreamError
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