gstreamer_vulkan/auto/
vulkan_handle_pool.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;
7use glib::prelude::*;
8
9glib::wrapper! {
10    ///
11    ///
12    /// This is an Abstract Base Class, you cannot instantiate it.
13    ///
14    /// # Implements
15    ///
16    /// [`VulkanHandlePoolExt`][trait@crate::prelude::VulkanHandlePoolExt], [`trait@gst::prelude::ObjectExt`], [`trait@glib::ObjectExt`]
17    #[doc(alias = "GstVulkanHandlePool")]
18    pub struct VulkanHandlePool(Object<ffi::GstVulkanHandlePool, ffi::GstVulkanHandlePoolClass>) @extends gst::Object;
19
20    match fn {
21        type_ => || ffi::gst_vulkan_handle_pool_get_type(),
22    }
23}
24
25impl VulkanHandlePool {
26    pub const NONE: Option<&'static VulkanHandlePool> = None;
27}
28
29unsafe impl Send for VulkanHandlePool {}
30unsafe impl Sync for VulkanHandlePool {}
31
32/// Trait containing all [`struct@VulkanHandlePool`] methods.
33///
34/// # Implementors
35///
36/// [`VulkanDescriptorCache`][struct@crate::VulkanDescriptorCache], [`VulkanHandlePool`][struct@crate::VulkanHandlePool]
37pub trait VulkanHandlePoolExt: IsA<VulkanHandlePool> + 'static {
38    //#[doc(alias = "gst_vulkan_handle_pool_acquire")]
39    //fn acquire(&self) -> Result</*Unimplemented*/Option<Basic: Pointer>, glib::Error> {
40    //    unsafe { TODO: call ffi:gst_vulkan_handle_pool_acquire() }
41    //}
42
43    //#[doc(alias = "gst_vulkan_handle_pool_alloc")]
44    //fn alloc(&self) -> Result</*Unimplemented*/Option<Basic: Pointer>, glib::Error> {
45    //    unsafe { TODO: call ffi:gst_vulkan_handle_pool_alloc() }
46    //}
47
48    //#[doc(alias = "gst_vulkan_handle_pool_release")]
49    //fn release(&self, handle: /*Unimplemented*/Option<Basic: Pointer>) {
50    //    unsafe { TODO: call ffi:gst_vulkan_handle_pool_release() }
51    //}
52}
53
54impl<O: IsA<VulkanHandlePool>> VulkanHandlePoolExt for O {}