#[repr(u32)]pub enum EncoderType {
H264 = 0,
Hevc = 1,
Av1 = 2,
Unknown = 255,
}Variants§
Trait Implementations§
Source§impl Clone for EncoderType
impl Clone for EncoderType
Source§fn clone(&self) -> EncoderType
fn clone(&self) -> EncoderType
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 EncoderType
impl Debug for EncoderType
Source§impl From<EncoderType> for nvmlEncoderType_t
impl From<EncoderType> for nvmlEncoderType_t
Source§fn from(value: EncoderType) -> Self
fn from(value: EncoderType) -> Self
Converts to this type from the input type.
Source§impl From<EncoderType> for u32
impl From<EncoderType> for u32
Source§fn from(enum_value: EncoderType) -> Self
fn from(enum_value: EncoderType) -> Self
Converts to this type from the input type.
Source§impl From<nvmlEncoderQueryType_enum> for EncoderType
impl From<nvmlEncoderQueryType_enum> for EncoderType
Source§fn from(value: nvmlEncoderType_t) -> Self
fn from(value: nvmlEncoderType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for EncoderType
impl Hash for EncoderType
Source§impl PartialEq for EncoderType
impl PartialEq for EncoderType
Source§fn eq(&self, other: &EncoderType) -> bool
fn eq(&self, other: &EncoderType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for EncoderType
impl TryFrom<u32> for EncoderType
Source§type Error = TryFromPrimitiveError<EncoderType>
type Error = TryFromPrimitiveError<EncoderType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for EncoderType
impl TryFromPrimitive for EncoderType
const NAME: &'static str = "EncoderType"
type Primitive = u32
type Error = TryFromPrimitiveError<EncoderType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for EncoderType
impl Eq for EncoderType
impl StructuralPartialEq for EncoderType
Auto Trait Implementations§
impl Freeze for EncoderType
impl RefUnwindSafe for EncoderType
impl Send for EncoderType
impl Sync for EncoderType
impl Unpin for EncoderType
impl UnsafeUnpin for EncoderType
impl UnwindSafe for EncoderType
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