pub struct UdpConfig {
pub buffer_size: usize,
pub broadcast: bool,
pub multicast: bool,
}Expand description
Configuration for UDP socket behavior
Fields§
§buffer_size: usizeSocket buffer size.
Currently not applied: std::net::UdpSocket exposes no
SO_RCVBUF/SO_SNDBUF setter (requires PAL/socket2-level support).
Pending PAL wiring; until then the value is configuration-only.
broadcast: boolBroadcast support, applied at bind time via SO_BROADCAST.
multicast: boolMulticast support.
Currently not applied: joining a multicast group requires a group
address, which this flag cannot carry, and the PAL exposes no
join_multicast surface. Pending a typed multicast configuration
(group + interface) in place of this flag.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UdpConfig
impl RefUnwindSafe for UdpConfig
impl Send for UdpConfig
impl Sync for UdpConfig
impl Unpin for UdpConfig
impl UnsafeUnpin for UdpConfig
impl UnwindSafe for UdpConfig
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