pub struct ProtosocketSocketConfig { /* private fields */ }Expand description
Socket configuration options for a ProtosocketServer.
Implementations§
Source§impl ProtosocketSocketConfig
impl ProtosocketSocketConfig
Sourcepub fn reuse(self, reuse: bool) -> Self
pub fn reuse(self, reuse: bool) -> Self
Whether reuseaddr and reuseport should be set on the socket.
Sourcepub fn keepalive_duration(self, keepalive_duration: Duration) -> Self
pub fn keepalive_duration(self, keepalive_duration: Duration) -> Self
The keepalive window to be set on the socket.
Sourcepub fn listen_backlog(self, backlog: u32) -> Self
pub fn listen_backlog(self, backlog: u32) -> Self
The backlog to be set on the socket when invoking listen.