pub struct ConnectOptions {
pub local_bind: Option<SocketAddr>,
pub enforce_dns_rebinding_check: bool,
pub enforce_literal_ip_check: bool,
}Expand description
Connect options for one outbound socket.
Fields§
§local_bind: Option<SocketAddr>§enforce_dns_rebinding_check: boolReject DNS results in reserved/private ranges. Literal IP targets are intentionally allowed for explicit local/LAN proxy compatibility.
enforce_literal_ip_check: boolAlso reject literal IP targets in reserved/private ranges when the caller is operating a stricter security boundary.
Trait Implementations§
Source§impl Clone for ConnectOptions
impl Clone for ConnectOptions
Source§fn clone(&self) -> ConnectOptions
fn clone(&self) -> ConnectOptions
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 ConnectOptions
impl Debug for ConnectOptions
Auto Trait Implementations§
impl Freeze for ConnectOptions
impl RefUnwindSafe for ConnectOptions
impl Send for ConnectOptions
impl Sync for ConnectOptions
impl Unpin for ConnectOptions
impl UnsafeUnpin for ConnectOptions
impl UnwindSafe for ConnectOptions
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