pub trait CrcBlock: Block + Clone {
    fn crc_value(&self) -> &CrcValue;
fn set_crc(&mut self, crc: CrcValue); fn has_crc(&self) -> bool { ... }
fn update_crc(&mut self) { ... }
fn check_crc(&mut self) -> bool { ... }
fn reset_crc(&mut self) { ... }
fn crc(&self) -> Option<&[u8]> { ... }
fn set_crc_type(&mut self, crc_value: CrcRawType) { ... }
fn crc_type(&self) -> CrcRawType { ... } }

Required methods

Provided methods

Convert block struct to a serializable enum

Recalculate crc value

Check if crc value is valid

Reset crc field to an empty value

Returns raw crc checksum

Set crc type CRC_NO, CRC_16, CRC_32

Return the crc type code

Implementors