#[non_exhaustive]pub enum SyntaxError {
MissingUriAfterExtInf,
InvalidExtInf(String),
MalformedAttributeList {
reason: &'static str,
input: String,
},
MissingAttribute {
tag: &'static str,
attribute: &'static str,
},
InvalidAttributeValue {
tag: &'static str,
attribute: &'static str,
value: String,
},
MissingTagValue {
tag: &'static str,
},
InvalidTagValue {
tag: &'static str,
value: String,
},
ConflictingAttributes {
tag: &'static str,
reason: &'static str,
},
}Expand description
The reason a playlist line could not be parsed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingUriAfterExtInf
An #EXTINF tag was not followed by a media segment URI.
InvalidExtInf(String)
An #EXTINF tag is malformed.
MalformedAttributeList
An attribute list could not be split into NAME=VALUE pairs.
MissingAttribute
A required attribute is absent.
InvalidAttributeValue
An attribute value does not have the type the tag requires.
MissingTagValue
A tag that requires a value has none.
InvalidTagValue
A tag’s value does not have the type the tag requires.
ConflictingAttributes
A tag’s attributes are present in a combination the specification forbids.
Trait Implementations§
Source§impl Clone for SyntaxError
impl Clone for SyntaxError
Source§impl Debug for SyntaxError
impl Debug for SyntaxError
Source§impl Display for SyntaxError
impl Display for SyntaxError
Source§impl Error for SyntaxError
impl Error for SyntaxError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for SyntaxError
impl PartialEq for SyntaxError
impl StructuralPartialEq for SyntaxError
Auto Trait Implementations§
impl Freeze for SyntaxError
impl RefUnwindSafe for SyntaxError
impl Send for SyntaxError
impl Sync for SyntaxError
impl Unpin for SyntaxError
impl UnsafeUnpin for SyntaxError
impl UnwindSafe for SyntaxError
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