pub struct StreamProxyConfig {
pub tls: bool,
pub proxy_protocol: bool,
pub session_timeout: Option<Duration>,
pub health_check: Option<StreamHealthProbe>,
}Expand description
Runtime configuration for a single L4 stream listener.
This is the proxy-local mirror of the StreamEndpointConfig spec type
(declared in zlayer-types). Keeping a separate type here lets the proxy
crate stay a leaf (no dependency on zlayer-types); the agent translates
the spec type into this one when constructing listeners.
Fields§
§tls: boolTerminate TLS at the proxy (TCP only). When set, the listener performs the TLS handshake using the shared SNI cert resolver and relays the decrypted plaintext to the backend.
proxy_protocol: boolPrepend a PROXY protocol v2 header to the upstream connection (TCP only) so the backend can recover the real client address.
session_timeout: Option<Duration>Per-listener session timeout override (UDP only).
health_check: Option<StreamHealthProbe>Optional decoded health probe applied to this service’s backends.
Trait Implementations§
Source§impl Clone for StreamProxyConfig
impl Clone for StreamProxyConfig
Source§fn clone(&self) -> StreamProxyConfig
fn clone(&self) -> StreamProxyConfig
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 StreamProxyConfig
impl Debug for StreamProxyConfig
Source§impl Default for StreamProxyConfig
impl Default for StreamProxyConfig
Source§fn default() -> StreamProxyConfig
fn default() -> StreamProxyConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamProxyConfig
impl RefUnwindSafe for StreamProxyConfig
impl Send for StreamProxyConfig
impl Sync for StreamProxyConfig
impl Unpin for StreamProxyConfig
impl UnsafeUnpin for StreamProxyConfig
impl UnwindSafe for StreamProxyConfig
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