pub struct UdpState { /* private fields */ }
Expand description
The capabilities a UDP socket suppports on a certain platform
Implementations
sourceimpl 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UdpState
impl Send for UdpState
impl Sync for UdpState
impl Unpin for UdpState
impl UnwindSafe for UdpState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more