pub enum VideoCodecPreference {
VP9,
AVC1,
AV1,
Custom(String),
Any,
}Expand description
Represents codec preferences for video format selection.
Variantsยง
VP9
Prefer VP9 codec
AVC1
Prefer AVC1/H.264 codec
AV1
Prefer AV01/AV1 codec
Custom(String)
Custom codec preference
Any
No specific codec preference
Trait Implementationsยง
Sourceยงimpl Clone for VideoCodecPreference
impl Clone for VideoCodecPreference
Sourceยงfn clone(&self) -> VideoCodecPreference
fn clone(&self) -> VideoCodecPreference
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 VideoCodecPreference
impl Debug for VideoCodecPreference
Sourceยงimpl Default for VideoCodecPreference
impl Default for VideoCodecPreference
Sourceยงfn default() -> VideoCodecPreference
fn default() -> VideoCodecPreference
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de> Deserialize<'de> for VideoCodecPreference
impl<'de> Deserialize<'de> for VideoCodecPreference
Sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl Display for VideoCodecPreference
impl Display for VideoCodecPreference
impl Eq for VideoCodecPreference
Sourceยงimpl Hash for VideoCodecPreference
impl Hash for VideoCodecPreference
Sourceยงimpl PartialEq for VideoCodecPreference
impl PartialEq for VideoCodecPreference
Sourceยงimpl Serialize for VideoCodecPreference
impl Serialize for VideoCodecPreference
impl StructuralPartialEq for VideoCodecPreference
Auto Trait Implementationsยง
impl Freeze for VideoCodecPreference
impl RefUnwindSafe for VideoCodecPreference
impl Send for VideoCodecPreference
impl Sync for VideoCodecPreference
impl Unpin for VideoCodecPreference
impl UnsafeUnpin for VideoCodecPreference
impl UnwindSafe for VideoCodecPreference
Blanket Implementationsยง
impl<T> AllTraits for T
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CommonTraits for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Sourceยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Sourceยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Sourceยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Sourceยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Anyโs vtable from &Traitโs.Sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Anyโs vtable from &mut Traitโs.Sourceยงimpl<T> DowncastSend for T
impl<T> DowncastSend for T
Sourceยงimpl<T> DowncastSync for T
impl<T> DowncastSync for T
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.