refix-message 0.3.3

Framing, tokenisation and raw message representation for the ReFIX engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::Tag;

/// A field value whose bytes can't be read as the field's declared data type.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct InvalidValue {
    pub tag: Tag,
}

impl std::fmt::Display for InvalidValue {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "invalid value in field {}", self.tag)
    }
}

impl std::error::Error for InvalidValue {}