Struct message_io::adapters::tcp::TcpConnectConfig
source · 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 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