pub struct TcpBindOptions {
pub backlog: u32,
pub reuseport: bool,
pub tcp_fastopen: Option<u32>,
}Expand description
Listen-socket bind options shared by every runtime backend.
Fields§
§backlog: u32listen() queue depth.
reuseport: boolRequest SO_REUSEPORT so each core can bind its own lane. Prime
honors a single-core listener today; tokio fans out per core.
tcp_fastopen: Option<u32>Kernel passive-open queue depth for TCP Fast Open (RFC 7413,
Linux). None leaves TFO off; non-Linux platforms ignore it.
Trait Implementations§
Source§impl Clone for TcpBindOptions
impl Clone for TcpBindOptions
impl Copy for TcpBindOptions
Source§impl Debug for TcpBindOptions
impl Debug for TcpBindOptions
Auto Trait Implementations§
impl Freeze for TcpBindOptions
impl RefUnwindSafe for TcpBindOptions
impl Send for TcpBindOptions
impl Sync for TcpBindOptions
impl Unpin for TcpBindOptions
impl UnsafeUnpin for TcpBindOptions
impl UnwindSafe for TcpBindOptions
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