#[repr(u32)]pub enum VideoFormat {
Vp8Webm = 0,
H264Mp4 = 1,
}Variants§
Implementations§
Source§impl VideoFormat
impl VideoFormat
pub fn extension_as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for VideoFormat
impl Clone for VideoFormat
Source§fn clone(&self) -> VideoFormat
fn clone(&self) -> VideoFormat
Returns a duplicate 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 VideoFormat
impl Debug for VideoFormat
Source§impl Default for VideoFormat
impl Default for VideoFormat
Source§fn default() -> VideoFormat
fn default() -> VideoFormat
Returns the “default value” for a type. Read more
Source§impl From<VideoFormat> for Value
impl From<VideoFormat> for Value
Source§fn from(v: VideoFormat) -> Self
fn from(v: VideoFormat) -> Self
Converts to this type from the input type.
Source§impl From<i32> for VideoFormat
impl From<i32> for VideoFormat
Source§impl<'a> FromValue<'a> for VideoFormat
impl<'a> FromValue<'a> for VideoFormat
Source§type Checker = GenericValueTypeChecker<VideoFormat>
type Checker = GenericValueTypeChecker<VideoFormat>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for VideoFormat
impl HasParamSpec for VideoFormat
type ParamSpec = ParamSpecEnum
Source§type SetValue = VideoFormat
type SetValue = VideoFormat
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, VideoFormat) -> ParamSpecEnumBuilder<'_, VideoFormat>
fn param_spec_builder() -> Self::BuilderFn
Source§impl PartialEq for VideoFormat
impl PartialEq for VideoFormat
Source§impl StaticType for VideoFormat
impl StaticType for VideoFormat
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for VideoFormat
impl ToValue for VideoFormat
Source§impl TryFromGlib<i32> for VideoFormat
impl TryFromGlib<i32> for VideoFormat
Source§impl ValueType for VideoFormat
impl ValueType for VideoFormat
Source§type Type = VideoFormat
type Type = VideoFormat
Type to get the
Type from. Read moreimpl Copy for VideoFormat
impl StructuralPartialEq for VideoFormat
Auto Trait Implementations§
impl Freeze for VideoFormat
impl RefUnwindSafe for VideoFormat
impl Send for VideoFormat
impl Sync for VideoFormat
impl Unpin for VideoFormat
impl UnsafeUnpin for VideoFormat
impl UnwindSafe for VideoFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HasParamSpecDefaulted for Twhere
T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32> + HasParamSpec<ParamSpec = ParamSpecEnum> + Default,
impl<T> HasParamSpecDefaulted for Twhere
T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32> + HasParamSpec<ParamSpec = ParamSpecEnum> + Default,
type BuilderFnDefaulted = fn(&str) -> ParamSpecEnumBuilder<'_, T>
fn param_spec_builder_defaulted() -> <T as HasParamSpecDefaulted>::BuilderFnDefaulted
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.