pub struct UdpSocketOpts {
pub mtu: Option<usize>,
pub allow_fragmentation: bool,
}Expand description
Options for UDP server
Fields§
§mtu: Option<usize>Maximum Transmission Unit (MTU) for UDP socket recv
NOTE: MTU includes IP header, UDP header, UDP payload
allow_fragmentation: boolOutbound UDP socket allows IP fragmentation
Trait Implementations§
Source§impl Clone for UdpSocketOpts
impl Clone for UdpSocketOpts
Source§fn clone(&self) -> UdpSocketOpts
fn clone(&self) -> UdpSocketOpts
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 UdpSocketOpts
impl Debug for UdpSocketOpts
Source§impl Default for UdpSocketOpts
impl Default for UdpSocketOpts
Source§fn default() -> UdpSocketOpts
fn default() -> UdpSocketOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UdpSocketOpts
impl RefUnwindSafe for UdpSocketOpts
impl Send for UdpSocketOpts
impl Sync for UdpSocketOpts
impl Unpin for UdpSocketOpts
impl UnwindSafe for UdpSocketOpts
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