vrt/
error.rs

1/// VRT Errors
2#[derive(Clone, Copy, Debug, Eq, PartialEq, thiserror::Error)]
3pub enum Error {
4    /// Buffer is full
5    #[error("Buffer is full")]
6    BufferFull,
7    /// Invalid TSI type.
8    #[error("Invalid TSI Type: {0}")]
9    Tsi(u8),
10    /// Invalid TSF type.
11    #[error("Invalid TSF Type: {0}")]
12    Tsf(u8),
13    /// Invalid packet type.
14    #[error("Invalid Packet Type: {0}")]
15    PktType(u8),
16    /// Conversion error
17    #[error("Conversion error: {0}")]
18    TryFromIntError(#[from] core::num::TryFromIntError),
19}