//! Error type returned by playlist parsing.
usealloc::string::String;usethiserror::Error;/// Crate-wide result alias.
pubtypeResult<T>=core::result::Result<T, Error>;/// Error variants that [`crate::MediaPlaylist::parse`]/[`crate::MasterPlaylist::parse`]
/// can return.
#[derive(Debug, Error, PartialEq, Eq)]#[non_exhaustive]pubenumError{/// An HLS playlist (`.m3u8`, RFC 8216bis) tag could not be parsed —
/// [`crate::MediaPlaylist::parse`]/[`crate::MasterPlaylist::parse`]'s
/// `to_m3u8()` renderers' symmetric inverse. Unrecognized tags are
/// ignored (forward-compat); this variant is only returned for a
/// *known* tag whose required attribute is missing or whose value
/// fails to parse.
#[error("hls parse (line {line_no}): {reason}\n {line}")]
HlsParse {/// 1-based line number within the input playlist text.
line_no:usize,/// The offending line, verbatim.
line:String,/// Human-readable explanation.
reason:String,},}