pub enum VarIntEncoding {
Rfc9000,
Moqt17,
Moqt18,
}Expand description
A variable-length integer encoding used by some MoQT draft.
The MoQT variants are named for the draft that introduced each revision,
not for the drafts that use it — DraftVersion::varint_encoding is the
one place that maps drafts to encodings.
Variants§
Rfc9000
The QUIC variable-length integer, RFC 9000 Section 16: a two-bit length prefix, 1/2/4/8 bytes, values up to 2^62 - 1.
Moqt17
MoQT’s own, as introduced in draft-17 Section 1.4.1: the length is the number of leading 1 bits in the first byte. Draft-17 omits the 7-byte length and rejects that code point.
Moqt18
MoQT’s own, as revised in draft-18, which restored the 7-byte length so all of 1 to 9 bytes are defined.
Trait Implementations§
Source§impl Clone for VarIntEncoding
impl Clone for VarIntEncoding
Source§fn clone(&self) -> VarIntEncoding
fn clone(&self) -> VarIntEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VarIntEncoding
Source§impl Debug for VarIntEncoding
impl Debug for VarIntEncoding
impl Eq for VarIntEncoding
Source§impl Hash for VarIntEncoding
impl Hash for VarIntEncoding
Source§impl PartialEq for VarIntEncoding
impl PartialEq for VarIntEncoding
impl StructuralPartialEq for VarIntEncoding
Auto Trait Implementations§
impl Freeze for VarIntEncoding
impl RefUnwindSafe for VarIntEncoding
impl Send for VarIntEncoding
impl Sync for VarIntEncoding
impl Unpin for VarIntEncoding
impl UnsafeUnpin for VarIntEncoding
impl UnwindSafe for VarIntEncoding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more