pub struct TransparentProxyConfig {
pub outbound_listener_port: Option<u16>,
pub dialed_directly: Option<bool>,
}
Fields§
§outbound_listener_port: Option<u16>
The port of the listener where outbound application traffic is being redirected to.
dialed_directly: Option<bool>
DialedDirectly indicates whether transparent proxies can dial this proxy instance directly. The discovery chain is not considered when dialing a service instance directly. This setting is useful when addressing stateful services, such as a database cluster with a leader node.
Trait Implementations§
Source§impl Clone for TransparentProxyConfig
impl Clone for TransparentProxyConfig
Source§fn clone(&self) -> TransparentProxyConfig
fn clone(&self) -> TransparentProxyConfig
Returns a duplicate 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 TransparentProxyConfig
impl Debug for TransparentProxyConfig
Source§impl Default for TransparentProxyConfig
impl Default for TransparentProxyConfig
Source§fn default() -> TransparentProxyConfig
fn default() -> TransparentProxyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransparentProxyConfig
impl<'de> Deserialize<'de> for TransparentProxyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransparentProxyConfig
impl RefUnwindSafe for TransparentProxyConfig
impl Send for TransparentProxyConfig
impl Sync for TransparentProxyConfig
impl Unpin for TransparentProxyConfig
impl UnwindSafe for TransparentProxyConfig
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