#[non_exhaustive]pub enum AddressError {
Show 13 variants
InvalidTemplate {
template: String,
fault: TemplateFault,
},
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,
}Expand description
Why a Representation’s segments cannot be addressed.
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.
InvalidTemplate
A template string is invalid (5.3.9.4.4); the Representation is dropped.
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.
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)>
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 From<AddressError> for PlanError
impl From<AddressError> for PlanError
Source§fn from(source: AddressError) -> Self
fn from(source: AddressError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddressError
impl PartialEq for AddressError
impl StructuralPartialEq for AddressError
Auto Trait Implementations§
impl Forget for AddressError
impl Freeze for AddressError
impl RefUnwindSafe for AddressError
impl Send for AddressError
impl Sync for AddressError
impl Unpin for AddressError
impl UnsafeUnpin for AddressError
impl UnwindSafe for AddressError
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