Struct message_io::adapters::udp::UdpConnectConfig
source · pub struct UdpConnectConfig {
pub source_address: SocketAddr,
pub broadcast: bool,
pub reuse_address: bool,
pub reuse_port: bool,
}Fields§
§source_address: SocketAddrSpecify the source address and port.
broadcast: boolEnables the socket capabilities to send broadcast messages.
reuse_address: boolSet value for the SO_REUSEADDR option on this socket. This indicates that futher calls to
bind may allow reuse of local addresses. For IPv4 sockets this means that a socket may
bind even when there’s a socket already listening on this port.
reuse_port: boolSet value for the SO_REUSEPORT option on this socket. This indicates that further calls
to bind may allow reuse of local addresses. For IPv4 sockets this means that a socket may
bind even when there’s a socket already listening on this port. This option is always-on on
Windows and cannot be configured.
Trait Implementations§
source§impl Clone for UdpConnectConfig
impl Clone for UdpConnectConfig
source§fn clone(&self) -> UdpConnectConfig
fn clone(&self) -> UdpConnectConfig
Returns a copy 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 UdpConnectConfig
impl Debug for UdpConnectConfig
source§impl Default for UdpConnectConfig
impl Default for UdpConnectConfig
source§impl Hash for UdpConnectConfig
impl Hash for UdpConnectConfig
source§impl PartialEq<UdpConnectConfig> for UdpConnectConfig
impl PartialEq<UdpConnectConfig> for UdpConnectConfig
source§fn eq(&self, other: &UdpConnectConfig) -> bool
fn eq(&self, other: &UdpConnectConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.