const SOH: u8 = 0x1;
const DEFAULT_MAX_MESSAGE_SIZE: usize = 0xffff;
#[derive(Debug, Copy, Clone)]
#[non_exhaustive]
pub struct Config {
pub separator: u8,
pub max_message_size: Option<usize>,
pub verify_checksum: bool,
pub should_decode_associative: bool,
}
impl Default for Config {
fn default() -> Self {
Self {
separator: SOH,
max_message_size: Some(DEFAULT_MAX_MESSAGE_SIZE),
verify_checksum: true,
should_decode_associative: true,
}
}
}