pub struct DirectTCPSocketOptions {
pub noDelay: bool,
pub keepAliveDelay: Option<f64>,
pub sendBufferSize: Option<f64>,
pub receiveBufferSize: Option<f64>,
pub dnsQueryType: Option<DirectSocketDnsQueryType>,
}Fields§
§noDelay: boolTCP_NODELAY option
keepAliveDelay: Option<f64>Expected to be unsigned integer.
sendBufferSize: Option<f64>Expected to be unsigned integer.
receiveBufferSize: Option<f64>Expected to be unsigned integer.
dnsQueryType: 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 · 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