Skip to main content

base_scheduler/
tcp_no_delay.rs

1// Released under the MIT License.
2// Copyright, 2026, by Samuel Williams.
3
4/// Boolean `TCP_NODELAY`: disable Nagle's algorithm when true. Valid for TCP sockets; this does not promise one packet per write or confirmation of peer receipt.
5#[derive(Clone, Copy, Debug)]
6pub struct TcpNoDelay;
7
8impl crate::SocketOption for TcpNoDelay {
9    type Value = bool;
10}