pub struct TcpFastOpenConnect;Available on crate feature
net only.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
Available on crate feature socket only.
impl Clone for TcpFastOpenConnect
Available on crate feature
socket only.Source§fn clone(&self) -> TcpFastOpenConnect
fn clone(&self) -> TcpFastOpenConnect
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 TcpFastOpenConnect
Available on crate feature socket only.
impl Debug for TcpFastOpenConnect
Available on crate feature
socket only.Source§impl GetSockOpt for TcpFastOpenConnect
Available on crate feature socket only.
impl GetSockOpt for TcpFastOpenConnect
Available on crate feature
socket only.Source§impl Hash for TcpFastOpenConnect
Available on crate feature socket only.
impl Hash for TcpFastOpenConnect
Available on crate feature
socket only.Source§impl PartialEq for TcpFastOpenConnect
Available on crate feature socket only.
impl PartialEq for TcpFastOpenConnect
Available on crate feature
socket only.Source§impl SetSockOpt for TcpFastOpenConnect
Available on crate feature socket only.
impl SetSockOpt for TcpFastOpenConnect
Available on crate feature
socket only.impl Copy for TcpFastOpenConnect
Available on crate feature
socket only.impl Eq for TcpFastOpenConnect
Available on crate feature
socket only.impl StructuralPartialEq for TcpFastOpenConnect
Available on crate feature
socket only.Auto Trait Implementations§
impl Freeze for TcpFastOpenConnect
Available on Unix only.
impl RefUnwindSafe for TcpFastOpenConnect
Available on Unix only.
impl Send for TcpFastOpenConnect
Available on Unix only.
impl Sync for TcpFastOpenConnect
Available on Unix only.
impl Unpin for TcpFastOpenConnect
Available on Unix only.
impl UnsafeUnpin for TcpFastOpenConnect
Available on Unix only.
impl UnwindSafe for TcpFastOpenConnect
Available on Unix only.
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Unix only.
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Unix only.
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,
Available on Unix only.
impl<T> CloneToUninit for Twhere
T: Clone,
Available on Unix only.