pub enum Fault {
DropRequestId,
DuplicateRequestId,
RemapStatus,
MangleBody,
StripRequestHeaders,
Unavailable,
NotBound,
}Expand description
A way the hop can be wrong. Used by the kit’s own tests to prove the parity checks fail when the forwarder misbehaves; never by a module.
Variants§
DropRequestId
Strips x-request-id from the response. The host re-adds its
own, so this is a resilience case rather than a defect.
DuplicateRequestId
Answers a second, different x-request-id, so the caller cannot
tell which trail to follow.
RemapStatus
Answers 500 whatever the sidecar said.
MangleBody
Rewrites the response body, keeping the status.
StripRequestHeaders
Drops the request headers on the way out, so the sidecar sees a bare request (the caller’s ip, admin bearer and id are lost).
Never answers: the binding exists but the Worker does not reply.
NotBound
The binding is not in this deployment at all.
Trait Implementations§
impl Copy for Fault
impl Eq for Fault
impl StructuralPartialEq for Fault
Auto Trait Implementations§
impl Freeze for Fault
impl RefUnwindSafe for Fault
impl Send for Fault
impl Sync for Fault
impl Unpin for Fault
impl UnsafeUnpin for Fault
impl UnwindSafe for Fault
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
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
Compare self to
key and return true if they are equal.