pub struct ChecksumState {
pub ipv4: bool,
pub tcp: bool,
pub udp: bool,
pub tso: Option<u16>,
}
Expand description
Specifies the checksum state for a packet being transmitted.
Fields§
§ipv4: bool
On receive, the data has a valid IPv4 header checksum. On send, the checksum should be ignored.
tcp: bool
On receive, the data has a valid TCP checksum. On send, the checksum should be ignored.
udp: bool
On receive, the data has a valid UDP checksum. On send, the checksum should be ignored.
tso: Option<u16>
The data consists of multiple TCP segments, each with the provided segment size.
The IP header’s length field may be invalid and should be ignored.
Trait Implementations§
Source§impl Clone for ChecksumState
impl Clone for ChecksumState
Source§fn clone(&self) -> ChecksumState
fn clone(&self) -> ChecksumState
Returns a copy 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 ChecksumState
impl Debug for ChecksumState
impl Copy for ChecksumState
Auto Trait Implementations§
impl Freeze for ChecksumState
impl RefUnwindSafe for ChecksumState
impl Send for ChecksumState
impl Sync for ChecksumState
impl Unpin for ChecksumState
impl UnwindSafe for ChecksumState
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