pub enum DecodedResponse<T> {
Success(T),
ProtocolFailure {
error: ProtocolError,
status_mismatch: Option<StatusMismatch>,
},
}Expand description
A successfully classified client response.
Variants§
Success(T)
A successful direct response body.
ProtocolFailure
A canonical Host protocol failure.
Fields
§
error: ProtocolErrorThe authoritative protocol error decoded from the envelope.
§
status_mismatch: Option<StatusMismatch>A diagnostic when the HTTP status differs from the canonical mapping.
Trait Implementations§
Source§impl<T: Clone> Clone for DecodedResponse<T>
impl<T: Clone> Clone for DecodedResponse<T>
Source§impl<T: Debug> Debug for DecodedResponse<T>
impl<T: Debug> Debug for DecodedResponse<T>
impl<T: Eq> Eq for DecodedResponse<T>
Source§impl<T: PartialEq> PartialEq for DecodedResponse<T>
impl<T: PartialEq> PartialEq for DecodedResponse<T>
impl<T: PartialEq> StructuralPartialEq for DecodedResponse<T>
Auto Trait Implementations§
impl<T> Freeze for DecodedResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for DecodedResponse<T>where
T: RefUnwindSafe,
impl<T> Send for DecodedResponse<T>where
T: Send,
impl<T> Sync for DecodedResponse<T>where
T: Sync,
impl<T> Unpin for DecodedResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for DecodedResponse<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for DecodedResponse<T>where
T: UnwindSafe,
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