gstreamer/auto/
proxy_pad.rs1use crate::{ffi, Object, Pad};
7use glib::{prelude::*, translate::*};
8
9glib::wrapper! {
10 #[doc(alias = "GstProxyPad")]
11 pub struct ProxyPad(Object<ffi::GstProxyPad, ffi::GstProxyPadClass>) @extends Pad, Object;
12
13 match fn {
14 type_ => || ffi::gst_proxy_pad_get_type(),
15 }
16}
17
18impl ProxyPad {
19 pub const NONE: Option<&'static ProxyPad> = None;
20
21 }
26
27unsafe impl Send for ProxyPad {}
28unsafe impl Sync for ProxyPad {}
29
30mod sealed {
31 pub trait Sealed {}
32 impl<T: super::IsA<super::ProxyPad>> Sealed for T {}
33}
34
35pub trait ProxyPadExt: IsA<ProxyPad> + sealed::Sealed + 'static {
36 #[doc(alias = "gst_proxy_pad_get_internal")]
37 #[doc(alias = "get_internal")]
38 #[must_use]
39 fn internal(&self) -> Option<ProxyPad> {
40 unsafe {
41 from_glib_full(ffi::gst_proxy_pad_get_internal(
42 self.as_ref().to_glib_none().0,
43 ))
44 }
45 }
46}
47
48impl<O: IsA<ProxyPad>> ProxyPadExt for O {}