pub enum SendError {
UnknownStream,
InvalidState,
HeadersTooLarge,
GoingAway,
Stream(StreamError),
}Expand description
Errors of the per-request API.
Variants§
UnknownStream
Unknown or finished stream.
InvalidState
Headers were already sent, or not yet sent before a body.
HeadersTooLarge
The field section is larger than the peer allows.
GoingAway
The peer sent GOAWAY: no new requests.
Stream(StreamError)
Trait Implementations§
impl Copy for SendError
impl Eq for SendError
Source§impl From<StreamError> for SendError
impl From<StreamError> for SendError
Source§fn from(e: StreamError) -> Self
fn from(e: StreamError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SendError
Auto Trait Implementations§
impl Forget for SendError
impl Freeze for SendError
impl Move for SendError
impl RefUnwindSafe for SendError
impl Send for SendError
impl Sync for SendError
impl Unpin for SendError
impl UnsafeUnpin for SendError
impl UnwindSafe for SendError
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