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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProtosocketSocketConfig
impl RefUnwindSafe for ProtosocketSocketConfig
impl Send for ProtosocketSocketConfig
impl Sync for ProtosocketSocketConfig
impl Unpin for ProtosocketSocketConfig
impl UnwindSafe for ProtosocketSocketConfig
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