Enum Tracer Field Type
Source #[non_exhaustive]pub enum TracerFieldType {
Boolean,
Int,
Uint,
Int64,
Uint64,
Double,
String,
ClockTime,
Structure,
Object,
}Expand description
The type of a trace format field. This is a deliberately small, self
contained set rather than a GType so the tracer stream stays independent
of the GObject type system.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Boolean
a gboolean
Int
a gint
Uint
a guint
Int64
a gint64
Uint64
a guint64
Double
a gdouble
String
a borrowed string (may be None)
ClockTime
a GstClockTime
Structure
Object
a borrowed glib::Object (may be None)
Trait Implementations§
Source§impl Clone for TracerFieldType
impl Clone for TracerFieldType
impl Copy for TracerFieldType
Source§impl Debug for TracerFieldType
impl Debug for TracerFieldType
impl Eq for TracerFieldType
Source§impl From<TracerFieldType> for Value
Available on crate feature v1_30 only.
impl From<TracerFieldType> for Value
Available on crate feature
v1_30 only.Source§fn from(v: TracerFieldType) -> Self
fn from(v: TracerFieldType) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for TracerFieldType
Available on crate feature v1_30 only.
impl<'a> FromValue<'a> for TracerFieldType
Available on crate feature
v1_30 only.Source§type Checker = GenericValueTypeChecker<TracerFieldType>
type Checker = GenericValueTypeChecker<TracerFieldType>
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 TracerFieldType
Available on crate feature v1_30 only.
impl HasParamSpec for TracerFieldType
Available on crate feature
v1_30 only.type ParamSpec = ParamSpecEnum
Source§type SetValue = TracerFieldType
type SetValue = TracerFieldType
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, TracerFieldType) -> ParamSpecEnumBuilder<'_, TracerFieldType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for TracerFieldType
impl Hash for TracerFieldType
Source§impl Ord for TracerFieldType
impl Ord for TracerFieldType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TracerFieldType
impl PartialEq for TracerFieldType
Source§impl PartialOrd for TracerFieldType
impl PartialOrd for TracerFieldType
Source§impl StaticType for TracerFieldType
Available on crate feature v1_30 only.
impl StaticType for TracerFieldType
Available on crate feature
v1_30 only.Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl StructuralPartialEq for TracerFieldType
Source§impl ToValue for TracerFieldType
Available on crate feature v1_30 only.
impl ToValue for TracerFieldType
Available on crate feature
v1_30 only.Source§impl ValueType for TracerFieldType
Available on crate feature v1_30 only.
impl ValueType for TracerFieldType
Available on crate feature
v1_30 only.Source§type Type = TracerFieldType
type Type = TracerFieldType
Type to get the
Type from. Read moreAuto Trait Implementations§
impl Forget for TracerFieldType
impl Freeze for TracerFieldType
impl Move for TracerFieldType
impl RefUnwindSafe for TracerFieldType
impl Send for TracerFieldType
impl Sync for TracerFieldType
impl Unpin for TracerFieldType
impl UnsafeUnpin for TracerFieldType
impl UnwindSafe for TracerFieldType
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> 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.