Struct std::net::Checksum [] [src]

pub struct Checksum {
    pub data: u16,
}

Fields

data

Methods

impl Checksum

unsafe fn check(&self, ptr: usize, len: usize) -> bool

unsafe fn calculate(&mut self, ptr: usize, len: usize)

unsafe fn sum(ptr: usize, len: usize) -> usize

unsafe fn compile(sum: usize) -> u16

Trait Implementations

Derived Implementations

impl Clone for Checksum

fn clone(&self) -> Checksum

fn clone_from(&mut self, source: &Self)

impl Copy for Checksum