pub enum DefaultAnswer {
Show 14 variants
Answer301 {
location: String,
},
Answer302 {
location: String,
},
Answer308 {
location: String,
},
Answer400 {
message: String,
phase: ParsingPhaseMarker,
successfully_parsed: String,
partially_parsed: String,
invalid: String,
},
Answer401 {
www_authenticate: Option<String>,
},
Answer404 {},
Answer408 {
duration: String,
},
Answer413 {
message: String,
phase: ParsingPhaseMarker,
capacity: usize,
},
Answer421 {},
Answer429 {
retry_after: Option<u32>,
},
Answer502 {
message: String,
phase: ParsingPhaseMarker,
successfully_parsed: String,
partially_parsed: String,
invalid: String,
},
Answer503 {
message: String,
},
Answer504 {
duration: String,
},
Answer507 {
phase: ParsingPhaseMarker,
message: String,
capacity: usize,
},
}Variants§
Answer301
Answer302
RFC 9110 §15.4.3 — temporary redirect; user agents may rewrite POST
to GET on follow. Surfaced by RedirectPolicy::Found (#1009).
Answer308
RFC 9110 §15.4.9 — permanent redirect that PRESERVES the request
method on follow (no GET-rewrite on POST). Surfaced by
RedirectPolicy::PermanentRedirect (#1009).
Answer400
Fields
phase: ParsingPhaseMarkerAnswer401
Fields
Answer404
Answer408
Answer413
Answer421
RFC 9110 §15.5.20 — returned when the request’s :authority / Host
host does not match the TLS SNI negotiated for this connection.
The peer may retry on a fresh TLS connection that negotiates an SNI
matching the authority.
Answer429
RFC 6585 §4 — emitted when the per-(cluster, source-IP) connection
limit is reached. retry_after is the suggested wait, in seconds;
None (or Some(0)) tells the template engine to omit the header
— Retry-After: 0 invites an immediate retry that defeats the
limit.
Answer502
Fields
phase: ParsingPhaseMarkerAnswer503
Answer504
Answer507
Trait Implementations§
Source§impl Clone for DefaultAnswer
impl Clone for DefaultAnswer
Source§fn clone(&self) -> DefaultAnswer
fn clone(&self) -> DefaultAnswer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DefaultAnswer
impl Debug for DefaultAnswer
impl Eq for DefaultAnswer
Source§impl From<&DefaultAnswer> for u16
impl From<&DefaultAnswer> for u16
Source§fn from(answer: &DefaultAnswer) -> u16
fn from(answer: &DefaultAnswer) -> u16
Source§impl PartialEq for DefaultAnswer
impl PartialEq for DefaultAnswer
Source§fn eq(&self, other: &DefaultAnswer) -> bool
fn eq(&self, other: &DefaultAnswer) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DefaultAnswer
Auto Trait Implementations§
impl Freeze for DefaultAnswer
impl RefUnwindSafe for DefaultAnswer
impl Send for DefaultAnswer
impl Sync for DefaultAnswer
impl Unpin for DefaultAnswer
impl UnsafeUnpin for DefaultAnswer
impl UnwindSafe for DefaultAnswer
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.