gstreamer/auto/
tracer_factory.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6use crate::{ffi, Object, PluginFeature};
7use glib::translate::*;
8
9glib::wrapper! {
10    #[doc(alias = "GstTracerFactory")]
11    pub struct TracerFactory(Object<ffi::GstTracerFactory, ffi::GstTracerFactoryClass>) @extends PluginFeature, Object;
12
13    match fn {
14        type_ => || ffi::gst_tracer_factory_get_type(),
15    }
16}
17
18impl TracerFactory {
19    #[doc(alias = "gst_tracer_factory_get_tracer_type")]
20    #[doc(alias = "get_tracer_type")]
21    pub fn tracer_type(&self) -> glib::types::Type {
22        unsafe {
23            from_glib(ffi::gst_tracer_factory_get_tracer_type(
24                self.to_glib_none().0,
25            ))
26        }
27    }
28}
29
30unsafe impl Send for TracerFactory {}
31unsafe impl Sync for TracerFactory {}