pub struct DirectTCPSocketOptions { /* private fields */ }Implementations§
Source§impl DirectTCPSocketOptions
impl DirectTCPSocketOptions
Sourcepub fn builder(no_delay: bool) -> DirectTCPSocketOptionsBuilder
pub fn builder(no_delay: bool) -> DirectTCPSocketOptionsBuilder
Creates a builder for this type with the required parameters:
no_delay: TCP_NODELAY option
Sourcepub fn keep_alive_delay(&self) -> Option<f64>
pub fn keep_alive_delay(&self) -> Option<f64>
Expected to be unsigned integer.
Sourcepub fn send_buffer_size(&self) -> Option<f64>
pub fn send_buffer_size(&self) -> Option<f64>
Expected to be unsigned integer.
Sourcepub fn receive_buffer_size(&self) -> Option<f64>
pub fn receive_buffer_size(&self) -> Option<f64>
Expected to be unsigned integer.
pub fn dns_query_type(&self) -> Option<&DirectSocketDnsQueryType>
Trait Implementations§
Source§impl Clone for DirectTCPSocketOptions
impl Clone for DirectTCPSocketOptions
Source§fn clone(&self) -> DirectTCPSocketOptions
fn clone(&self) -> DirectTCPSocketOptions
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 moreSource§impl Debug for DirectTCPSocketOptions
impl Debug for DirectTCPSocketOptions
Source§impl Default for DirectTCPSocketOptions
impl Default for DirectTCPSocketOptions
Source§fn default() -> DirectTCPSocketOptions
fn default() -> DirectTCPSocketOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DirectTCPSocketOptions
impl<'de> Deserialize<'de> for DirectTCPSocketOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DirectTCPSocketOptions
impl RefUnwindSafe for DirectTCPSocketOptions
impl Send for DirectTCPSocketOptions
impl Sync for DirectTCPSocketOptions
impl Unpin for DirectTCPSocketOptions
impl UnsafeUnpin for DirectTCPSocketOptions
impl UnwindSafe for DirectTCPSocketOptions
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