Struct message_io::adapters::udp::UdpConnectConfig
source · pub struct UdpConnectConfig { /* private fields */ }
Implementations§
source§impl UdpConnectConfig
impl UdpConnectConfig
sourcepub fn with_source_address(self, addr: SocketAddr) -> Self
pub fn with_source_address(self, addr: SocketAddr) -> Self
Specify the source address and port.
sourcepub fn with_broadcast(self) -> Self
pub fn with_broadcast(self) -> Self
Enables the socket capabilities to send broadcast messages.
sourcepub fn with_reuse_address(self) -> Self
pub fn with_reuse_address(self) -> Self
Set 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.
sourcepub fn with_reuse_port(self) -> Self
pub fn with_reuse_port(self) -> Self
Set 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 for UdpConnectConfig
impl PartialEq 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 ==
.impl Eq for UdpConnectConfig
impl StructuralPartialEq for UdpConnectConfig
Auto Trait Implementations§
impl RefUnwindSafe for UdpConnectConfig
impl Send for UdpConnectConfig
impl Sync for UdpConnectConfig
impl Unpin for UdpConnectConfig
impl UnwindSafe for UdpConnectConfig
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