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 Freeze for TcpListenConfig
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