qbase 0.6.3

Core structure of the QUIC protocol, a part of dquic
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

/// Errors encountered while parsing a datagram.
#[derive(Debug, PartialEq, Eq, Error)]
pub enum Error {
    #[error("Invalid datagram type")]
    InvalidDatagramType,
    #[error("Invalid STUN type")]
    InvalidStunType,
    #[error("Invalid STUN datagram")]
    InvalidStunMessage,
    #[error("Invalid Forward datagram")]
    InvalidForwardDatagram,
}