pub(crate) enum User {
Show 13 variants
Body,
BodyWriteAborted,
MakeService,
Service,
UnexpectedHeader,
UnsupportedVersion,
UnsupportedRequestMethod,
UnsupportedStatusCode,
AbsoluteUriRequired,
NoUpgrade,
ManualUpgrade,
WithoutShutdownNonHttp1,
DispatchGone,
}
Variants§
Body
Error calling user’s HttpBody::poll_data().
BodyWriteAborted
The user aborted writing of the outgoing body.
MakeService
Error calling user’s MakeService.
Service
Error from future of user’s Service.
UnexpectedHeader
User tried to send a certain header in an unexpected context.
For example, sending both content-length
and transfer-encoding
.
UnsupportedVersion
User tried to create a Request with bad version.
UnsupportedRequestMethod
User tried to create a CONNECT Request with the Client.
UnsupportedStatusCode
User tried to respond with a 1xx (not 101) response code.
AbsoluteUriRequired
User tried to send a Request with Client with non-absolute URI.
NoUpgrade
User tried polling for an upgrade that doesn’t exist.
ManualUpgrade
User polled for an upgrade, but low-level API is not using upgrades.
WithoutShutdownNonHttp1
User called server::Connection::without_shutdown()
on an HTTP/2 conn.
DispatchGone
The dispatch task is gone.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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