Struct iroh_quinn_udp::UdpState
source · pub struct UdpState { /* private fields */ }
Expand description
The capabilities a UDP socket suppports on a certain platform
Implementations§
source§impl UdpState
impl UdpState
pub fn new() -> Self
sourcepub fn max_gso_segments(&self) -> usize
pub fn max_gso_segments(&self) -> usize
The maximum amount of segments which can be transmitted if a platform supports Generic Send Offload (GSO).
This is 1 if the platform doesn’t support GSO. Subject to change if errors are detected while using GSO.
sourcepub fn gro_segments(&self) -> usize
pub fn gro_segments(&self) -> usize
The number of segments to read when GRO is enabled. Used as a factor to compute the receive buffer size.
Returns 1 if the platform doesn’t support GRO.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for UdpState
impl RefUnwindSafe for UdpState
impl Send for UdpState
impl Sync for UdpState
impl Unpin for UdpState
impl UnwindSafe for UdpState
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