pub enum CacheMediaType {
VideoSegment,
AudioSegment,
Image,
Manifest,
Thumbnail,
Metadata,
Generic,
}Expand description
The media type label attached to a cached entry.
Used by WeightConfig to look up per-type weight overrides.
Variants§
VideoSegment
HLS/DASH video segment.
AudioSegment
Audio-only segment.
Image
Still image or frame.
Manifest
Streaming manifest / playlist.
Thumbnail
Thumbnail preview.
Metadata
Metadata sidecar.
Generic
Generic / unclassified entry.
Trait Implementations§
Source§impl Clone for CacheMediaType
impl Clone for CacheMediaType
Source§fn clone(&self) -> CacheMediaType
fn clone(&self) -> CacheMediaType
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 moreimpl Copy for CacheMediaType
Source§impl Debug for CacheMediaType
impl Debug for CacheMediaType
impl Eq for CacheMediaType
Source§impl Hash for CacheMediaType
impl Hash for CacheMediaType
Source§impl PartialEq for CacheMediaType
impl PartialEq for CacheMediaType
Source§fn eq(&self, other: &CacheMediaType) -> bool
fn eq(&self, other: &CacheMediaType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CacheMediaType
Auto Trait Implementations§
impl Freeze for CacheMediaType
impl RefUnwindSafe for CacheMediaType
impl Send for CacheMediaType
impl Sync for CacheMediaType
impl Unpin for CacheMediaType
impl UnsafeUnpin for CacheMediaType
impl UnwindSafe for CacheMediaType
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