#[non_exhaustive]pub enum Phase {
Connect,
Headers,
Body,
Redirect,
}Expand description
Where in a call an error happened. Carried by HttpError::Timeout and
HttpError::Transport so apps can keep their own per-phase messages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connect
Name lookup, TCP connect or TLS handshake.
Headers
Sending the request and waiting for the response headers.
Body
Reading the response body.
Redirect
Any phase of a redirect hop after the first request, or an exhausted redirect limit.
Implementations§
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
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