pub enum CrcCheck {
Strict,
Lenient,
Off,
}Expand description
How strictly a CRC is checked.
Variants§
Strict
CRC-16/X-25, low byte first on the wire. The default, and what the specification and every conforming meter use.
Lenient
CRC-16/X-25 or CRC-16/KERMIT, each in either byte order, for meters that deviate (some Holley DTZ541 send KERMIT).
Four values are accepted instead of one, so a corrupted telegram passes with a probability of 4/65536 instead of 1/65536. Use it for the meter that needs it, not as a default.
Off
The CRC is not checked. For captures known to be damaged, never for billing.
Trait Implementations§
impl Copy for CrcCheck
impl Eq for CrcCheck
impl StructuralPartialEq for CrcCheck
Auto Trait Implementations§
impl Forget for CrcCheck
impl Freeze for CrcCheck
impl Move for CrcCheck
impl RefUnwindSafe for CrcCheck
impl Send for CrcCheck
impl Sync for CrcCheck
impl Unpin for CrcCheck
impl UnsafeUnpin for CrcCheck
impl UnwindSafe for CrcCheck
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