#[non_exhaustive]pub struct SocketConfig { /* private fields */ }Implementations§
Source§impl SocketConfig
impl SocketConfig
pub fn new() -> Self
pub fn local_address(self, addr: impl Into<Option<IpAddr>>) -> Self
pub fn local_ipv4(self, addr: impl Into<Option<Ipv4Addr>>) -> Self
pub fn local_ipv6(self, addr: impl Into<Option<Ipv6Addr>>) -> Self
pub fn tcp_nodelay(self, on: impl Into<Option<bool>>) -> Self
pub fn tcp_keepalive(self, d: impl Into<Option<Duration>>) -> Self
pub fn tcp_keepalive_interval(self, d: impl Into<Option<Duration>>) -> Self
pub fn tcp_keepalive_retries(self, n: impl Into<Option<u32>>) -> Self
pub fn tcp_user_timeout(self, d: impl Into<Option<Duration>>) -> Self
pub fn send_buffer_size(self, n: impl Into<Option<usize>>) -> Self
pub fn recv_buffer_size(self, n: impl Into<Option<usize>>) -> Self
pub fn strict(self, on: bool) -> Self
pub fn happy_eyeballs( self, config: impl Into<Option<HappyEyeballsConfig>>, ) -> Self
Trait Implementations§
Source§impl Clone for SocketConfig
impl Clone for SocketConfig
Source§impl Debug for SocketConfig
impl Debug for SocketConfig
Source§impl Default for SocketConfig
impl Default for SocketConfig
impl Eq for SocketConfig
Source§impl PartialEq for SocketConfig
impl PartialEq for SocketConfig
impl StructuralPartialEq for SocketConfig
Auto Trait Implementations§
impl Freeze for SocketConfig
impl RefUnwindSafe for SocketConfig
impl Send for SocketConfig
impl Sync for SocketConfig
impl Unpin for SocketConfig
impl UnsafeUnpin for SocketConfig
impl UnwindSafe for SocketConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more