gstreamer/auto/
proxy_pad.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, 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    //#[doc(alias = "gst_proxy_pad_iterate_internal_links_default")]
22    //pub fn iterate_internal_links_default(pad: &impl IsA<Pad>, parent: Option<&impl IsA<Object>>) -> /*Ignored*/Option<Iterator> {
23    //    unsafe { TODO: call ffi:gst_proxy_pad_iterate_internal_links_default() }
24    //}
25}
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 {}