pub struct TcpConnectConfig { /* private fields */ }
Implementations§
Source§impl TcpConnectConfig
impl TcpConnectConfig
Sourcepub fn with_bind_device(self, device: String) -> Self
pub fn with_bind_device(self, device: String) -> Self
Bind the TCP connection to a specific interface, identified by its name. This option works in Unix, on other systems, it will be ignored.
Sourcepub fn with_keepalive(self, keepalive: TcpKeepalive) -> Self
pub fn with_keepalive(self, keepalive: TcpKeepalive) -> Self
Enables TCP keepalive settings on the socket.
Sourcepub fn with_source_address(self, source_address: SocketAddr) -> Self
pub fn with_source_address(self, source_address: SocketAddr) -> Self
Specify the source address and port.
Trait Implementations§
Source§impl Clone for TcpConnectConfig
impl Clone for TcpConnectConfig
Source§fn clone(&self) -> TcpConnectConfig
fn clone(&self) -> TcpConnectConfig
Returns a copy 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 TcpConnectConfig
impl Debug for TcpConnectConfig
Source§impl Default for TcpConnectConfig
impl Default for TcpConnectConfig
Source§fn default() -> TcpConnectConfig
fn default() -> TcpConnectConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TcpConnectConfig
impl RefUnwindSafe for TcpConnectConfig
impl Send for TcpConnectConfig
impl Sync for TcpConnectConfig
impl Unpin for TcpConnectConfig
impl UnwindSafe for TcpConnectConfig
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