pub enum MediaContentType {
VideoSegment {
bitrate: u32,
codec: String,
},
AudioSegment {
bitrate: u32,
},
Image {
width: u32,
height: u32,
},
Manifest,
Thumbnail,
Metadata,
}Expand description
The media type of a cached entry.
The variant determines the default priority, TTL, and eviction score.
Variants§
VideoSegment
A video segment (e.g. MPEG-DASH chunk or HLS .ts file).
Fields
AudioSegment
An audio-only segment.
Image
A still image (e.g. JPEG or PNG frame).
Manifest
A streaming manifest / playlist (e.g. HLS .m3u8 or DASH .mpd).
Thumbnail
A thumbnail preview image.
Metadata
Lightweight metadata / sidecar (e.g. .json or .xml descriptor).
Trait Implementations§
Source§impl Clone for MediaContentType
impl Clone for MediaContentType
Source§fn clone(&self) -> MediaContentType
fn clone(&self) -> MediaContentType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MediaContentType
impl Debug for MediaContentType
Source§impl PartialEq for MediaContentType
impl PartialEq for MediaContentType
Source§fn eq(&self, other: &MediaContentType) -> bool
fn eq(&self, other: &MediaContentType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MediaContentType
impl StructuralPartialEq for MediaContentType
Auto Trait Implementations§
impl Freeze for MediaContentType
impl RefUnwindSafe for MediaContentType
impl Send for MediaContentType
impl Sync for MediaContentType
impl Unpin for MediaContentType
impl UnsafeUnpin for MediaContentType
impl UnwindSafe for MediaContentType
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