pub struct ChecksumOffload {
pub rx: bool,
pub tx: bool,
}Expand description
Checksum offload capabilities for a given protocol, per direction.
Fields§
§rx: boolThe device verifies the checksum of received packets.
The stack then does not verify it in software.
tx: boolThe device fills in the checksum of transmitted packets.
The stack then writes the field as zero instead of computing it.
Implementations§
Trait Implementations§
Source§impl Clone for ChecksumOffload
impl Clone for ChecksumOffload
Source§fn clone(&self) -> ChecksumOffload
fn clone(&self) -> ChecksumOffload
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 moreimpl Copy for ChecksumOffload
Source§impl Debug for ChecksumOffload
impl Debug for ChecksumOffload
Source§impl Default for ChecksumOffload
impl Default for ChecksumOffload
Source§fn default() -> ChecksumOffload
fn default() -> ChecksumOffload
Returns the “default value” for a type. Read more
impl Eq for ChecksumOffload
Source§impl PartialEq for ChecksumOffload
impl PartialEq for ChecksumOffload
impl StructuralPartialEq for ChecksumOffload
Auto Trait Implementations§
impl Freeze for ChecksumOffload
impl RefUnwindSafe for ChecksumOffload
impl Send for ChecksumOffload
impl Sync for ChecksumOffload
impl Unpin for ChecksumOffload
impl UnsafeUnpin for ChecksumOffload
impl UnwindSafe for ChecksumOffload
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