#[non_exhaustive]pub enum AddressError {
Show 15 variants
InvalidTemplate {
template: String,
fault: TemplateFault,
},
MissingTemplateValue {
template: String,
which: &'static str,
},
Unsupported(Unsupported),
MissingMediaTemplate,
MissingDuration,
TimelineNotIncreasing {
t: u64,
floor: u64,
},
NumberNotIncreasing {
n: u64,
expected: u64,
},
ZeroSegmentDuration,
TimelineTooLong {
count_hint: u64,
},
ListTimelineMismatch {
urls: usize,
segments: u64,
},
Sidx(String),
Overflow,
IndexRequired,
EmptySegmentUrl,
UnsupportedFeature,
}Expand description
Why a Representation’s segments cannot be addressed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidTemplate
A template string is invalid (5.3.9.4.4); the Representation is dropped.
MissingTemplateValue
A template names a $Number$ or $Time$ the Representation has no
value for; rendering it would address the wrong segment.
Unsupported(Unsupported)
A feature outside the 0.1 scope.
MissingMediaTemplate
A template Representation with no @media.
MissingDuration
A multi-segment list with neither @duration nor a timeline.
TimelineNotIncreasing
S@t smaller than the end of the previous run.
NumberNotIncreasing
S@n smaller than the next expected number.
ZeroSegmentDuration
An S with @d of zero cannot time a segment (5.3.9.6.1).
TimelineTooLong
The timeline describes more segments than the bound allows.
ListTimelineMismatch
A SegmentList whose URL count and timeline disagree.
Sidx(String)
The index bytes are not a usable sidx.
Overflow
Arithmetic overflow on hostile values.
IndexRequired
A SegmentBase Representation whose sidx has not been supplied yet.
EmptySegmentUrl
A SegmentList entry with no @media and no @mediaRange.
UnsupportedFeature
A Segment addressing kind this core does not plan (a future
broadcast-dash variant), or a template fault it does not classify.
Trait Implementations§
Source§impl Clone for AddressError
impl Clone for AddressError
Source§impl Debug for AddressError
impl Debug for AddressError
Source§impl Display for AddressError
impl Display for AddressError
impl Eq for AddressError
Source§impl Error for AddressError
impl Error for AddressError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()