Expose the version VarInt (#77)
Useful for documentation. Right now it's: ```rust pub const KIXEL_00: Version = _ ``` This should probably be an enum too?
This commit is contained in:
parent
46604ada41
commit
fbd06da2ee
|
@ -6,7 +6,7 @@ use std::ops::Deref;
|
||||||
|
|
||||||
/// A version number negotiated during the setup.
|
/// A version number negotiated during the setup.
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
pub struct Version(VarInt);
|
pub struct Version(pub VarInt);
|
||||||
|
|
||||||
impl Version {
|
impl Version {
|
||||||
/// <https://www.ietf.org/archive/id/draft-ietf-moq-transport-00.html>
|
/// <https://www.ietf.org/archive/id/draft-ietf-moq-transport-00.html>
|
||||||
|
|
Loading…
Reference in New Issue