gstreamer_allocators/auto/
phys_memory_allocator.rs
1use crate::ffi;
7use glib::prelude::*;
8
9glib::wrapper! {
10 #[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
30mod sealed {
31 pub trait Sealed {}
32 impl<T: super::IsA<super::PhysMemoryAllocator>> Sealed for T {}
33}
34
35pub trait PhysMemoryAllocatorExt: IsA<PhysMemoryAllocator> + sealed::Sealed + 'static {}
41
42impl<O: IsA<PhysMemoryAllocator>> PhysMemoryAllocatorExt for O {}