pub struct StreamKey {
pub kind: SmoothStreamType,
pub ordinal: u32,
}Available on crate feature
std only.Expand description
What identifies one advertised stream: its media kind and the 1-based
ordinal of that kind, (kind, ordinal), exactly the pair the manifest’s
StreamIndex@Name/@Url and the request grammar name. Two tracks of one
kind are therefore distinct.
Fields§
§kind: SmoothStreamTypeThe StreamIndex@Type kind.
ordinal: u321-based position among the streams of kind.
Implementations§
Source§impl StreamKey
impl StreamKey
Sourcepub fn name(&self) -> String
pub fn name(&self) -> String
The StreamIndex@Name this key is advertised under: the bare Type for
the first stream of a kind, TYPE_N for the rest (MS-SSTR §2.2.2.3).
Sourcepub fn url_template(&self) -> String
pub fn url_template(&self) -> String
The StreamIndex@Url fragment-URL template whose Fragments(N=...)
token carries this key’s Self::name, so each stream of a kind is
addressed distinctly.
Trait Implementations§
impl Copy for StreamKey
impl Eq for StreamKey
impl StructuralPartialEq for StreamKey
Auto Trait Implementations§
impl Forget for StreamKey
impl Freeze for StreamKey
impl Move for StreamKey
impl RefUnwindSafe for StreamKey
impl Send for StreamKey
impl Sync for StreamKey
impl Unpin for StreamKey
impl UnsafeUnpin for StreamKey
impl UnwindSafe for StreamKey
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