naia_serde/
error.rs

1/// The error message when failing to serialize/deserialize to/from the bit
2/// stream.
3#[derive(Clone)]
4pub struct SerdeErr;
5
6impl std::fmt::Debug for SerdeErr {
7    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
8        write!(f, "Bin deserialize error",)
9    }
10}
11
12impl std::fmt::Display for SerdeErr {
13    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
14        std::fmt::Debug::fmt(self, f)
15    }
16}
17
18impl std::error::Error for SerdeErr {}