gstreamer_allocators/auto/
phys_memory_allocator.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    /// # Implements
13    ///
14    /// [`PhysMemoryAllocatorExt`][trait@crate::prelude::PhysMemoryAllocatorExt], [`trait@gst::prelude::AllocatorExt`]
15    #[doc(alias = "GstPhysMemoryAllocator")]
16    pub struct PhysMemoryAllocator(Interface<ffi::GstPhysMemoryAllocator, ffi::GstPhysMemoryAllocatorInterface>) @requires gst::Allocator;
17
18    match fn {
19        type_ => || ffi::gst_phys_memory_allocator_get_type(),
20    }
21}
22
23impl PhysMemoryAllocator {
24    pub const NONE: Option<&'static PhysMemoryAllocator> = None;
25}
26
27unsafe impl Send for PhysMemoryAllocator {}
28unsafe impl Sync for PhysMemoryAllocator {}
29
30/// Trait containing all [`struct@PhysMemoryAllocator`] methods.
31///
32/// # Implementors
33///
34/// [`PhysMemoryAllocator`][struct@crate::PhysMemoryAllocator]
35pub trait PhysMemoryAllocatorExt: IsA<PhysMemoryAllocator> + 'static {}
36
37impl<O: IsA<PhysMemoryAllocator>> PhysMemoryAllocatorExt for O {}