pub struct TcpSettings {
pub no_delay: bool,
pub user_timeout: Option<Duration>,
pub keepalive_time: Option<Duration>,
pub keepalive_interval: Option<Duration>,
pub keepalive_retries: Option<u32>,
}Expand description
Best-effort TCP socket configuration.
Fields§
§no_delay: boolWhether to disable Nagle’s algorithm.
user_timeout: Option<Duration>Optional TCP user timeout on supported operating systems.
keepalive_time: Option<Duration>Optional keepalive idle time.
keepalive_interval: Option<Duration>Optional keepalive probe interval.
keepalive_retries: Option<u32>Optional number of failed probes before the connection is closed.
Trait Implementations§
Source§impl Clone for TcpSettings
impl Clone for TcpSettings
Source§fn clone(&self) -> TcpSettings
fn clone(&self) -> TcpSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TcpSettings
Source§impl Debug for TcpSettings
impl Debug for TcpSettings
Source§impl Default for TcpSettings
impl Default for TcpSettings
impl Eq for TcpSettings
Source§impl PartialEq for TcpSettings
impl PartialEq for TcpSettings
impl StructuralPartialEq for TcpSettings
Auto Trait Implementations§
impl Freeze for TcpSettings
impl RefUnwindSafe for TcpSettings
impl Send for TcpSettings
impl Sync for TcpSettings
impl Unpin for TcpSettings
impl UnsafeUnpin for TcpSettings
impl UnwindSafe for TcpSettings
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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