pub struct SocketConfig {
pub bind_addr: Option<SocketAddr>,
pub ttl: Option<u32>,
pub ipv4_only: bool,
pub ipv6_only: bool,
pub recv_timeout: Option<Duration>,
}Fields§
§bind_addr: Option<SocketAddr>§ttl: Option<u32>§ipv4_only: bool§ipv6_only: bool§recv_timeout: Option<Duration>Trait Implementations§
Source§impl Clone for SocketConfig
impl Clone for SocketConfig
Source§fn clone(&self) -> SocketConfig
fn clone(&self) -> SocketConfig
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 SocketConfig
impl Debug for SocketConfig
Source§impl Default for SocketConfig
impl Default for SocketConfig
Source§fn default() -> SocketConfig
fn default() -> SocketConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SocketConfig
impl PartialEq for SocketConfig
Source§fn eq(&self, other: &SocketConfig) -> bool
fn eq(&self, other: &SocketConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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