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:
kixelated 2023-09-18 17:24:35 -07:00 committed by GitHub
parent 46604ada41
commit fbd06da2ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>