pub enum RsVideoCodec {
X265,
H264,
Custom(String),
Unknown,
}
Variants§
Implementations§
source§impl RsVideoCodec
impl RsVideoCodec
pub fn from_filename(filename: &str) -> Self
Trait Implementations§
source§impl Clone for RsVideoCodec
impl Clone for RsVideoCodec
source§fn clone(&self) -> RsVideoCodec
fn clone(&self) -> RsVideoCodec
Returns a copy of the value. Read more
1.0.0 · 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 RsVideoCodec
impl Debug for RsVideoCodec
source§impl Default for RsVideoCodec
impl Default for RsVideoCodec
source§fn default() -> RsVideoCodec
fn default() -> RsVideoCodec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RsVideoCodec
impl<'de> Deserialize<'de> for RsVideoCodec
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 RsVideoCodec
impl Display for RsVideoCodec
source§impl FromStr for RsVideoCodec
impl FromStr for RsVideoCodec
source§impl PartialEq for RsVideoCodec
impl PartialEq for RsVideoCodec
source§fn eq(&self, other: &RsVideoCodec) -> bool
fn eq(&self, other: &RsVideoCodec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RsVideoCodec
impl Serialize for RsVideoCodec
source§impl TryFrom<&str> for RsVideoCodec
impl TryFrom<&str> for RsVideoCodec
impl StructuralPartialEq for RsVideoCodec
Auto Trait Implementations§
impl Freeze for RsVideoCodec
impl RefUnwindSafe for RsVideoCodec
impl Send for RsVideoCodec
impl Sync for RsVideoCodec
impl Unpin for RsVideoCodec
impl UnwindSafe for RsVideoCodec
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