#[non_exhaustive]pub enum HlsMasterError {
BandwidthUnknown,
BandwidthOverflow {
bandwidth: u64,
},
Render(Error),
AudioRenditionUriEqualsMediaPlaylist,
}Available on crate feature
std only.Expand description
Error returned by HlsOrigin::master_playlist.
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.
BandwidthUnknown
No segment with a measurable duration has been published yet and no
declared bandwidth was configured, so BANDWIDTH cannot be
determined.
BandwidthOverflow
The measured peak segment bitrate does not fit the u32 BANDWIDTH
of a master playlist variant.
Render(Error)
The master playlist could not be rendered (a field carries a character forbidden in an HLS quoted string).
AudioRenditionUriEqualsMediaPlaylist
An audio rendition’s uri equals the media playlist name.
Trait Implementations§
Source§impl Clone for HlsMasterError
impl Clone for HlsMasterError
Source§impl Debug for HlsMasterError
impl Debug for HlsMasterError
Source§impl Display for HlsMasterError
impl Display for HlsMasterError
Source§impl Error for HlsMasterError
impl Error for HlsMasterError
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 HlsMasterError
impl PartialEq for HlsMasterError
impl StructuralPartialEq for HlsMasterError
Auto Trait Implementations§
impl Forget for HlsMasterError
impl Freeze for HlsMasterError
impl RefUnwindSafe for HlsMasterError
impl Send for HlsMasterError
impl Sync for HlsMasterError
impl Unpin for HlsMasterError
impl UnsafeUnpin for HlsMasterError
impl UnwindSafe for HlsMasterError
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