Enum sozu_lib::protocol::kawa_h1::DefaultAnswer
source · pub enum DefaultAnswer {
Answer301 {
location: String,
},
Answer400 {
message: String,
phase: ParsingPhaseMarker,
details: String,
},
Answer401 {},
Answer404 {},
Answer408 {
duration: String,
},
Answer413 {
message: String,
phase: ParsingPhaseMarker,
capacity: usize,
},
Answer502 {
message: String,
phase: ParsingPhaseMarker,
details: String,
},
Answer503 {
message: String,
},
Answer504 {
duration: String,
},
Answer507 {
phase: ParsingPhaseMarker,
message: String,
capacity: usize,
},
}
Variants§
Answer301
Answer400
Answer401
Answer404
Answer408
Answer413
Answer502
Answer503
Answer504
Answer507
Trait Implementations§
source§impl Clone for DefaultAnswer
impl Clone for DefaultAnswer
source§fn clone(&self) -> DefaultAnswer
fn clone(&self) -> DefaultAnswer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DefaultAnswer
impl Debug for DefaultAnswer
source§impl From<&DefaultAnswer> for u16
impl From<&DefaultAnswer> for u16
source§fn from(answer: &DefaultAnswer) -> u16
fn from(answer: &DefaultAnswer) -> u16
Converts to this type from the input type.
source§impl PartialEq for DefaultAnswer
impl PartialEq for DefaultAnswer
source§fn eq(&self, other: &DefaultAnswer) -> bool
fn eq(&self, other: &DefaultAnswer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DefaultAnswer
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 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
Mutably borrows from an owned value. Read more
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
Compare self to
key
and return true
if they are equal.