kacrab-protocol 0.2.0

Kafka wire protocol types — generated from upstream message schemas by `kacrab-codegen`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Error types for [`crate::crc`].
//!
//! A single failure mode (`expected != actual`) so this is a plain struct,
//! not the `struct + Kind` shape.

/// CRC32C checksum mismatch.
#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
#[error("CRC mismatch: expected {expected:#010x}, actual {actual:#010x}")]
#[non_exhaustive]
pub struct CrcMismatch {
    /// CRC value read from the wire.
    pub expected: u32,
    /// CRC value computed locally.
    pub actual: u32,
}