Struct message_io::adapters::tcp::TcpListenConfig
source · pub struct TcpListenConfig { /* private fields */ }Implementations§
source§impl TcpListenConfig
impl TcpListenConfig
sourcepub fn with_bind_device(self, device: String) -> Self
pub fn with_bind_device(self, device: String) -> Self
Bind the TCP listener 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 client connection sockets.
Trait Implementations§
source§impl Clone for TcpListenConfig
impl Clone for TcpListenConfig
source§fn clone(&self) -> TcpListenConfig
fn clone(&self) -> TcpListenConfig
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 TcpListenConfig
impl Debug for TcpListenConfig
source§impl Default for TcpListenConfig
impl Default for TcpListenConfig
source§fn default() -> TcpListenConfig
fn default() -> TcpListenConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TcpListenConfig
impl Send for TcpListenConfig
impl Sync for TcpListenConfig
impl Unpin for TcpListenConfig
impl UnwindSafe for TcpListenConfig
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