pub struct ReverseClientConfig {
pub server_addr: SocketAddr,
pub auth_username: Option<String>,
pub auth_password: Option<String>,
pub reconnect_initial_ms: u64,
pub reconnect_max_ms: u64,
pub default_target_host: Option<String>,
pub default_target_port: Option<u16>,
pub read_timeout_ms: u64,
pub drain_grace_ms: u64,
pub target_connect_timeout_ms: u64,
}Expand description
Configuration for a reverse proxy control client.
Fields§
§server_addr: SocketAddrAddress of the reverse server to connect to.
auth_username: Option<String>Optional username for authentication.
auth_password: Option<String>Optional password for authentication.
reconnect_initial_ms: u64Reconnect backoff initial delay in milliseconds.
reconnect_max_ms: u64Reconnect backoff max delay in milliseconds.
default_target_host: Option<String>Default target host (used when no target is specified in proxy request).
default_target_port: Option<u16>Default target port.
read_timeout_ms: u64Idle read timeout on the control channel in milliseconds. 0 = no timeout.
drain_grace_ms: u64Grace period for drain on shutdown, in milliseconds.
target_connect_timeout_ms: u64Timeout for target connect attempts in milliseconds. 0 = no timeout.
Trait Implementations§
Source§impl Clone for ReverseClientConfig
impl Clone for ReverseClientConfig
Source§fn clone(&self) -> ReverseClientConfig
fn clone(&self) -> ReverseClientConfig
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 ReverseClientConfig
impl Debug for ReverseClientConfig
Auto Trait Implementations§
impl Freeze for ReverseClientConfig
impl RefUnwindSafe for ReverseClientConfig
impl Send for ReverseClientConfig
impl Sync for ReverseClientConfig
impl Unpin for ReverseClientConfig
impl UnsafeUnpin for ReverseClientConfig
impl UnwindSafe for ReverseClientConfig
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