#[non_exhaustive]pub struct TcpConnectOpts {
pub tcp_fast_open: bool,
}
Expand description
Custom tcp connect options
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.tcp_fast_open: bool
TCP fast open.
Implementations§
Source§impl TcpConnectOpts
impl TcpConnectOpts
Sourcepub fn tcp_fast_open(self, fast_open: bool) -> Self
pub fn tcp_fast_open(self, fast_open: bool) -> Self
Specify FastOpen Note: This option only works for linux 4.1+ and macos/ios 9.0+. If it is enabled, the connection will be established on the first call to write.
Trait Implementations§
Source§impl Clone for TcpConnectOpts
impl Clone for TcpConnectOpts
Source§fn clone(&self) -> TcpConnectOpts
fn clone(&self) -> TcpConnectOpts
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TcpConnectOpts
impl Debug for TcpConnectOpts
Source§impl Default for TcpConnectOpts
impl Default for TcpConnectOpts
impl Copy for TcpConnectOpts
Auto Trait Implementations§
impl Freeze for TcpConnectOpts
impl RefUnwindSafe for TcpConnectOpts
impl Send for TcpConnectOpts
impl Sync for TcpConnectOpts
impl Unpin for TcpConnectOpts
impl UnwindSafe for TcpConnectOpts
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