#[non_exhaustive]pub enum Rejection {
NotMedia,
InitUndecodable,
DemuxFailed,
BadIndex,
WrongLength,
TooLarge,
NonFragmentedMp4,
}Expand description
Why a delivered body was rejected.
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.
NotMedia
Not a media fragment (moof then mdat): an error page, a truncated
transfer or garbage.
InitUndecodable
An init without a complete moov.
DemuxFailed
The demuxer refused the init and segment.
BadIndex
The sidx bytes are not a usable index.
WrongLength
A ranged response whose length differs from the requested range.
TooLarge
Larger than DashConfig::max_segment_bytes.
NonFragmentedMp4
A progressive MP4 served as a media segment.
Implementations§
Trait Implementations§
impl Copy for Rejection
impl Eq for Rejection
impl StructuralPartialEq for Rejection
Auto Trait Implementations§
impl Forget for Rejection
impl Freeze for Rejection
impl RefUnwindSafe for Rejection
impl Send for Rejection
impl Sync for Rejection
impl Unpin for Rejection
impl UnsafeUnpin for Rejection
impl UnwindSafe for Rejection
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