pub enum StreamHealthProbe {
TcpConnect,
UdpProbe {
request: Vec<u8>,
expect: Option<Vec<u8>>,
},
}Expand description
A decoded L4 health probe carried on a StreamProxyConfig.
This is the runtime, proxy-local representation of the controlling
StreamHealthCheck spec type (which lives in zlayer-types). The agent is
responsible for translating the spec type into this enum (decoding hex
escapes in the UDP request/expect payloads, etc.) before handing it to the
proxy. The proxy itself never depends on zlayer-types.
Variants§
TcpConnect
TCP connect probe — a successful connect() marks the backend healthy.
UdpProbe
UDP probe — send request, mark healthy iff a reply arrives. When
expect is Some, the reply must additionally contain expect as a
(byte) substring.
Trait Implementations§
Source§impl Clone for StreamHealthProbe
impl Clone for StreamHealthProbe
Source§fn clone(&self) -> StreamHealthProbe
fn clone(&self) -> StreamHealthProbe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamHealthProbe
impl Debug for StreamHealthProbe
impl Eq for StreamHealthProbe
Source§impl PartialEq for StreamHealthProbe
impl PartialEq for StreamHealthProbe
Source§fn eq(&self, other: &StreamHealthProbe) -> bool
fn eq(&self, other: &StreamHealthProbe) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamHealthProbe
Auto Trait Implementations§
impl Freeze for StreamHealthProbe
impl RefUnwindSafe for StreamHealthProbe
impl Send for StreamHealthProbe
impl Sync for StreamHealthProbe
impl Unpin for StreamHealthProbe
impl UnsafeUnpin for StreamHealthProbe
impl UnwindSafe for StreamHealthProbe
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<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.