Function set_tcp_notsent_lowat
pub fn set_tcp_notsent_lowat(
socket: &impl AsSocketRef,
lowat: u32,
) -> Result<(), Error>Available on crate feature
net and (Android or Apple or Linux) only.Expand description
Set the TCP_NOTSENT_LOWAT option on this socket.
The socket only reports writable while fewer than lowat bytes are
written but not yet sent. Data in flight does not count, unlike the
send buffer size, so throughput keeps scaling with the congestion window.
0 restores the system default; values above i32::MAX set no limit.