Function vector::net::set_send_buffer_size
source · pub fn set_send_buffer_size<'s, S>(socket: &'s S, size: usize) -> Result<()>
Expand description
Sets the send buffer size for a socket.
This is the equivalent of setting the SO_SNDBUF
socket setting directly.
§Errors
If there is an error setting the send buffer size on the given socket, or if the value given as the socket is not a valid socket, an error variant will be returned explaining the underlying I/O error.