pub struct Capabilities {
pub gso: bool,
pub gro: bool,
pub sendmmsg: bool,
pub ecn: bool,
pub max_batch: usize,
}Expand description
Runtime-detected UDP optimization capabilities of a FastUdpSocket.
All fields are determined at build() time by probing the kernel and
applying any kill-switches from FastUdpSocketBuilder. Call
FastUdpSocket::capabilities to inspect what the socket is using.
Fields§
§gso: boolGeneric Segmentation Offload — send N packets via one sendmsg with
UDP_SEGMENT. Linux only.
gro: boolGeneric Receive Offload — receive coalesced datagrams via recvmsg
with UDP_GRO. Linux only.
sendmmsg: boolsendmmsg batch send — multiple UDP datagrams in a single syscall.
Linux (and some other Unix) only.
ecn: boolExplicit Congestion Notification — send/receive IP TOS/TCLASS ancillary data.
max_batch: usizeMaximum number of datagrams the socket will attempt in a single batch call.
Implementations§
Source§impl Capabilities
impl Capabilities
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnsafeUnpin for Capabilities
impl UnwindSafe for Capabilities
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