mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-06-10 01:09:27 +00:00
improve documentation for ProtocolVersion
This commit is contained in:
parent
49c5b5334c
commit
cdb6367dbd
|
@ -3,13 +3,8 @@ use std::str::FromStr;
|
||||||
|
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
|
|
||||||
/// # [7. Protocol Version Compatibility]
|
/// The [`ProtocolVersion`] specifies which `m3u8` revision is required, to
|
||||||
///
|
/// parse a certain tag correctly.
|
||||||
/// The [`ProtocolVersion`] specifies, which m3u8 revision is required, to parse
|
|
||||||
/// a certain tag correctly.
|
|
||||||
///
|
|
||||||
/// [7. Protocol Version Compatibility]:
|
|
||||||
/// https://tools.ietf.org/html/draft-pantos-hls-rfc8216bis-05#section-7
|
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
|
@ -24,7 +19,7 @@ pub enum ProtocolVersion {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ProtocolVersion {
|
impl ProtocolVersion {
|
||||||
/// Returns the newest [`ProtocolVersion`], that is supported by
|
/// Returns the latest [`ProtocolVersion`] that is supported by
|
||||||
/// this library.
|
/// this library.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
|
|
Loading…
Reference in a new issue