Struct netstack3_core::tcp::SocketOptions
source · pub struct SocketOptions {
pub keep_alive: KeepAlive,
pub nagle_enabled: bool,
pub user_timeout: Option<NonZeroDuration>,
pub delayed_ack: bool,
pub fin_wait2_timeout: Option<Duration>,
pub max_syn_retries: NonZeroU8,
}
Expand description
TCP socket options.
This only stores options that are trivial to get and set.
Fields§
§keep_alive: KeepAlive
Socket options that control TCP keep-alive mechanism, see [KeepAlive
].
nagle_enabled: bool
Switch to turn nagle algorithm on/off.
user_timeout: Option<NonZeroDuration>
The period of time after which the connection should be aborted if no ACK is received.
delayed_ack: bool
Switch to turn delayed ACK on/off.
fin_wait2_timeout: Option<Duration>
The period of time after with a dangling FIN_WAIT2 state should be reclaimed.
max_syn_retries: NonZeroU8
The maximum SYN retransmissions before aborting a connection.
Trait Implementations§
source§impl Clone for SocketOptions
impl Clone for SocketOptions
source§fn clone(&self) -> SocketOptions
fn clone(&self) -> SocketOptions
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 SocketOptions
impl Debug for SocketOptions
source§impl Default for SocketOptions
impl Default for SocketOptions
source§impl PartialEq for SocketOptions
impl PartialEq for SocketOptions
source§fn eq(&self, other: &SocketOptions) -> bool
fn eq(&self, other: &SocketOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SocketOptions
impl Eq for SocketOptions
impl StructuralPartialEq for SocketOptions
Auto Trait Implementations§
impl Freeze for SocketOptions
impl RefUnwindSafe for SocketOptions
impl Send for SocketOptions
impl Sync for SocketOptions
impl Unpin for SocketOptions
impl UnwindSafe for SocketOptions
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.