Skip to main content

mesquitte_core/server/quic/
mod.rs

1use std::convert::Infallible;
2
3pub mod server;
4
5#[derive(Debug, thiserror::Error)]
6pub enum Error {
7    #[error("Io Error : {0}")]
8    Io(#[from] std::io::Error),
9    #[error("Infallible Error")]
10    Infallible(#[from] Infallible),
11    #[error("Quic Start Error")]
12    StartError(#[from] s2n_quic::provider::StartError),
13    #[error("QuicServer Connect Error : {0}")]
14    Connection(#[from] s2n_quic::connection::Error),
15    #[error("Connection broken")]
16    ConnectionBroken,
17    #[error(transparent)]
18    V4VariablePacket(#[from] mqtt_codec_kit::v4::packet::VariablePacketError),
19    #[error(transparent)]
20    V5VariablePacket(#[from] mqtt_codec_kit::v5::packet::VariablePacketError),
21}