#[repr(transparent)]
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct Http3FrameType(u64);
impl Http3FrameType {
pub const DATA: Self = Self(0x00);
pub const HEADERS: Self = Self(0x01);
pub const CANCEL_PUSH: Self = Self(0x03);
pub const SETTINGS: Self = Self(0x04);
pub const PUSH_PROMISE: Self = Self(0x05);
pub const GOAWAY: Self = Self(0x07);
pub const MAX_PUSH_ID: Self = Self(0x0d);
pub const fn new(value: u64) -> Self {
Self(value)
}
pub const fn value(self) -> u64 {
self.0
}
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct Http3SettingId(u64);
impl Http3SettingId {
pub const QPACK_MAX_TABLE_CAPACITY: Self = Self(0x01);
pub const MAX_FIELD_SECTION_SIZE: Self = Self(0x06);
pub const QPACK_BLOCKED_STREAMS: Self = Self(0x07);
pub const fn new(value: u64) -> Self {
Self(value)
}
pub const fn value(self) -> u64 {
self.0
}
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct Http3StreamType(u64);
impl Http3StreamType {
pub const CONTROL: Self = Self(0x00);
pub const PUSH: Self = Self(0x01);
pub const QPACK_ENCODER: Self = Self(0x02);
pub const QPACK_DECODER: Self = Self(0x03);
pub const fn new(value: u64) -> Self {
Self(value)
}
pub const fn value(self) -> u64 {
self.0
}
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct Http3ErrorCode(u64);
impl Http3ErrorCode {
pub const NO_ERROR: Self = Self(0x0100);
pub const GENERAL_PROTOCOL_ERROR: Self = Self(0x0101);
pub const INTERNAL_ERROR: Self = Self(0x0102);
pub const STREAM_CREATION_ERROR: Self = Self(0x0103);
pub const CLOSED_CRITICAL_STREAM: Self = Self(0x0104);
pub const FRAME_UNEXPECTED: Self = Self(0x0105);
pub const FRAME_ERROR: Self = Self(0x0106);
pub const EXCESSIVE_LOAD: Self = Self(0x0107);
pub const ID_ERROR: Self = Self(0x0108);
pub const SETTINGS_ERROR: Self = Self(0x0109);
pub const MISSING_SETTINGS: Self = Self(0x010a);
pub const REQUEST_REJECTED: Self = Self(0x010b);
pub const REQUEST_CANCELLED: Self = Self(0x010c);
pub const REQUEST_INCOMPLETE: Self = Self(0x010d);
pub const MESSAGE_ERROR: Self = Self(0x010e);
pub const CONNECT_ERROR: Self = Self(0x010f);
pub const VERSION_FALLBACK: Self = Self(0x0110);
pub const QPACK_DECOMPRESSION_FAILED: Self = Self(0x0200);
pub const QPACK_ENCODER_STREAM_ERROR: Self = Self(0x0201);
pub const QPACK_DECODER_STREAM_ERROR: Self = Self(0x0202);
pub const fn new(value: u64) -> Self {
Self(value)
}
pub const fn value(self) -> u64 {
self.0
}
}