pub struct DirectTcpSocketOptions {
pub no_delay: bool,
pub keep_alive_delay: Option<f64>,
pub send_buffer_size: Option<f64>,
pub receive_buffer_size: Option<f64>,
pub dns_query_type: Option<DirectSocketDnsQueryType>,
}
Fields§
§no_delay: bool
TCP_NODELAY option
keep_alive_delay: Option<f64>
Expected to be unsigned integer.
send_buffer_size: Option<f64>
Expected to be unsigned integer.
receive_buffer_size: Option<f64>
Expected to be unsigned integer.
dns_query_type: Option<DirectSocketDnsQueryType>
Implementations§
Source§impl DirectTcpSocketOptions
impl DirectTcpSocketOptions
pub fn new(no_delay: impl Into<bool>) -> DirectTcpSocketOptions
Source§impl DirectTcpSocketOptions
impl DirectTcpSocketOptions
pub fn builder() -> DirectTcpSocketOptionsBuilder
Source§impl DirectTcpSocketOptions
impl DirectTcpSocketOptions
pub const IDENTIFIER: &'static str = "Network.DirectTCPSocketOptions"
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<'de> Deserialize<'de> for DirectTcpSocketOptions
impl<'de> Deserialize<'de> for DirectTcpSocketOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DirectTcpSocketOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DirectTcpSocketOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DirectTcpSocketOptions
impl PartialEq for DirectTcpSocketOptions
Source§impl Serialize for DirectTcpSocketOptions
impl Serialize for DirectTcpSocketOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DirectTcpSocketOptions
Auto Trait Implementations§
impl Freeze for DirectTcpSocketOptions
impl RefUnwindSafe for DirectTcpSocketOptions
impl Send for DirectTcpSocketOptions
impl Sync for DirectTcpSocketOptions
impl Unpin 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