1#[repr(transparent)]
5#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6pub struct Http3PushId(u64);
7
8impl Http3PushId {
9 pub const fn new(value: u64) -> Self {
11 Self(value)
12 }
13
14 pub const fn value(self) -> u64 {
16 self.0
17 }
18}
19
20#[repr(transparent)]
22#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
23pub struct Http3StreamId(u64);
24
25impl Http3StreamId {
26 pub const fn new(value: u64) -> Self {
28 Self(value)
29 }
30
31 pub const fn value(self) -> u64 {
33 self.0
34 }
35}