#[non_exhaustive]pub enum SubstitutionError {
UndefinedVariable(String),
MissingImport(String),
MissingQueryParameter(String),
DuplicateVariable(String),
InvalidDefine(String),
InvalidValue(String),
Parse(ParseError),
}Expand description
An error encountered while substituting EXT-X-DEFINE variables.
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.
UndefinedVariable(String)
A {$name} reference has no definition.
MissingImport(String)
An IMPORT names a variable missing from the imported variables.
MissingQueryParameter(String)
A QUERYPARAM names a parameter missing from the playlist URI query.
DuplicateVariable(String)
A variable is defined more than once.
InvalidDefine(String)
An EXT-X-DEFINE tag does not have exactly one of NAME/VALUE,
IMPORT, or QUERYPARAM, or its name is invalid.
InvalidValue(String)
A variable’s value contains a control character or a double quote, which would change the structure of the playlist once substituted.
Parse(ParseError)
The playlist could not be parsed after substitution.
Trait Implementations§
Source§impl Debug for SubstitutionError
impl Debug for SubstitutionError
Source§impl Display for SubstitutionError
impl Display for SubstitutionError
Source§impl Error for SubstitutionError
impl Error for SubstitutionError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SubstitutionError
impl !UnwindSafe for SubstitutionError
impl Freeze for SubstitutionError
impl Send for SubstitutionError
impl Sync for SubstitutionError
impl Unpin for SubstitutionError
impl UnsafeUnpin for SubstitutionError
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