pub enum SendRequestResult {
Await100(Call<Await100>),
SendBody(Call<SendBody>),
RecvResponse(Call<RecvResponse>),
}Expand description
Possible state transitions after sending a request.
After sending the request headers, the call can transition to one of three states:
Await100: If the request included anExpect: 100-continueheaderSendBody: If the request has a body to sendRecvResponse: If the request has no body (e.g., GET, HEAD)
See the state graph for a visual representation.
Variants§
Await100(Call<Await100>)
Expect-100/Continue mechanic.
SendBody(Call<SendBody>)
Send the request body.
RecvResponse(Call<RecvResponse>)
Receive the response.
Auto Trait Implementations§
impl !Freeze for SendRequestResult
impl !RefUnwindSafe for SendRequestResult
impl Send for SendRequestResult
impl Sync for SendRequestResult
impl Unpin for SendRequestResult
impl !UnwindSafe for SendRequestResult
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