pub struct TcpFastOpenConnect;
Expand description
Enables TCP Fast Open (RFC 7413) on a connecting socket. If a fast open
cookie is not available (first attempt to connect), connect
syscall
will behave as usual, except for internally trying to solicit a cookie
from remote peer. When cookie is available, the next connect
syscall
will immediately succeed without actually establishing TCP connection.
The connection establishment will be defered till the next write
or
sendmsg
syscalls on the socket, allowing TCP prtocol to establish
connection and send data in the same packets. Note: calling read
right
after connect
without write
on the socket will cause the blocking
socket to be blocked forever.
Trait Implementations§
source§impl Clone for TcpFastOpenConnect
impl Clone for TcpFastOpenConnect
source§fn clone(&self) -> TcpFastOpenConnect
fn clone(&self) -> TcpFastOpenConnect
Returns a copy 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 TcpFastOpenConnect
impl Debug for TcpFastOpenConnect
source§impl GetSockOpt for TcpFastOpenConnect
impl GetSockOpt for TcpFastOpenConnect
source§impl Hash for TcpFastOpenConnect
impl Hash for TcpFastOpenConnect
source§impl PartialEq for TcpFastOpenConnect
impl PartialEq for TcpFastOpenConnect
source§impl SetSockOpt for TcpFastOpenConnect
impl SetSockOpt for TcpFastOpenConnect
impl Copy for TcpFastOpenConnect
impl Eq for TcpFastOpenConnect
impl StructuralPartialEq for TcpFastOpenConnect
Auto Trait Implementations§
impl Freeze for TcpFastOpenConnect
impl RefUnwindSafe for TcpFastOpenConnect
impl Send for TcpFastOpenConnect
impl Sync for TcpFastOpenConnect
impl Unpin for TcpFastOpenConnect
impl UnwindSafe for TcpFastOpenConnect
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)