From 4ebf16ef0b216445b84bd2cf3c8c0a7a1e2ec130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Tue, 2 Jan 2024 14:43:01 +0100 Subject: [PATCH] Make TcpOptions non_exhaustive --- src/tcp_options.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tcp_options.rs b/src/tcp_options.rs index 3164bc9..8f91d5c 100644 --- a/src/tcp_options.rs +++ b/src/tcp_options.rs @@ -8,6 +8,7 @@ use tokio::net::{TcpSocket, TcpStream}; /// Options to apply to the TCP socket involved in the tunneling. #[derive(Debug, Default, Clone)] #[cfg_attr(feature = "clap", derive(clap::Parser))] +#[non_exhaustive] pub struct TcpOptions { /// If given, sets the SO_RCVBUF option on the TCP socket to the given number of bytes. /// Changes the size of the operating system's receive buffer associated with the socket.