#[non_exhaustive]pub enum SmoothRequest {
Manifest,
Fragment {
stream: StreamKey,
bitrate: u64,
start: u64,
},
}Available on crate feature
std only.Expand description
What a caller asks a SmoothOrigin for: the client Manifest, or one
fragment of it.
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.
Manifest
GET .../Manifest — the live client Manifest.
Fragment
GET ... /QualityLevels(BITRATE)/Fragments(KIND=START).
Implementations§
Source§impl SmoothRequest
impl SmoothRequest
Sourcepub fn parse(path: &str, kinds: &[StreamKey]) -> Option<SmoothRequest>
pub fn parse(path: &str, kinds: &[StreamKey]) -> Option<SmoothRequest>
Parse a request from a fragment path or its file name
(QualityLevels(BITRATE)/Fragments(KIND=START), MS-SSTR §2.2.3), or a
Manifest file name. kinds supplies the advertised stream ordinals the
KIND token may name (video, audio, text, and TYPE_N). None
for an unrecognised path.
Trait Implementations§
Source§impl Clone for SmoothRequest
impl Clone for SmoothRequest
impl Copy for SmoothRequest
Source§impl Debug for SmoothRequest
impl Debug for SmoothRequest
impl Eq for SmoothRequest
Source§impl PartialEq for SmoothRequest
impl PartialEq for SmoothRequest
impl StructuralPartialEq for SmoothRequest
Auto Trait Implementations§
impl Forget for SmoothRequest
impl Freeze for SmoothRequest
impl Move for SmoothRequest
impl RefUnwindSafe for SmoothRequest
impl Send for SmoothRequest
impl Sync for SmoothRequest
impl Unpin for SmoothRequest
impl UnsafeUnpin for SmoothRequest
impl UnwindSafe for SmoothRequest
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