Struct gstreamer_allocators::DRMDumbMemoryRef
source · pub struct DRMDumbMemoryRef(/* private fields */);
Implementations§
source§impl DRMDumbMemoryRef
impl DRMDumbMemoryRef
pub fn as_ptr(&self) -> *const GstMemory
pub fn as_mut_ptr(&self) -> *mut GstMemory
pub unsafe fn from_ptr<'a>(ptr: *const GstMemory) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstMemory) -> &'a mut Self
pub fn copy(&self) -> DRMDumbMemory
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn ptr_eq(this: &DRMDumbMemoryRef, other: &DRMDumbMemoryRef) -> bool
source§impl DRMDumbMemoryRef
impl DRMDumbMemoryRef
pub fn upcast_memory_ref<M>(&self) -> &M::RefType
pub fn upcast_memory_mut<M>(&mut self) -> &mut M::RefType
source§impl DRMDumbMemoryRef
impl DRMDumbMemoryRef
pub fn fd(&self) -> u32
pub fn export_dmabuf(&self) -> Result<DmaBufMemory, BoolError>
Methods from Deref<Target = MemoryRef>§
pub fn as_ptr(&self) -> *const GstMemory
pub fn as_mut_ptr(&self) -> *mut GstMemory
pub fn copy(&self) -> Memory
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn allocator(&self) -> Option<&Allocator>
pub fn parent(&self) -> Option<&MemoryRef>
pub fn maxsize(&self) -> usize
pub fn align(&self) -> usize
pub fn offset(&self) -> usize
pub fn size(&self) -> usize
pub fn flags(&self) -> MemoryFlags
pub fn copy_range(&self, range: impl RangeBounds<usize>) -> Memory
pub fn copy_range_maxsize(&self, range: impl RangeBounds<usize>) -> Memory
pub fn is_span(&self, mem2: &MemoryRef) -> Option<usize>
pub fn is_type(&self, mem_type: &str) -> bool
pub fn map_readable(&self) -> Result<MemoryMap<'_, Readable>, BoolError>
pub fn map_writable(&mut self) -> Result<MemoryMap<'_, Writable>, BoolError>
pub fn resize(&mut self, range: impl RangeBounds<usize>)
pub fn resize_maxsize(&mut self, range: impl RangeBounds<usize>)
pub fn dump(&self) -> Dump<'_>
pub fn dump_range(&self, range: impl RangeBounds<usize>) -> Dump<'_>
pub fn is_memory_type<M>(&self) -> bool
pub fn downcast_memory_ref<M>(&self) -> Option<&<M as IsMiniObject>::RefType>
pub fn downcast_memory_mut<M>( &mut self, ) -> Option<&mut <M as IsMiniObject>::RefType>
Trait Implementations§
source§impl AsMut<MemoryRef> for DRMDumbMemoryRef
impl AsMut<MemoryRef> for DRMDumbMemoryRef
source§impl AsRef<DRMDumbMemoryRef> for DRMDumbMemory
impl AsRef<DRMDumbMemoryRef> for DRMDumbMemory
source§fn as_ref(&self) -> &DRMDumbMemoryRef
fn as_ref(&self) -> &DRMDumbMemoryRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<MemoryRef> for DRMDumbMemoryRef
impl AsRef<MemoryRef> for DRMDumbMemoryRef
source§impl Borrow<DRMDumbMemoryRef> for DRMDumbMemory
impl Borrow<DRMDumbMemoryRef> for DRMDumbMemory
source§fn borrow(&self) -> &DRMDumbMemoryRef
fn borrow(&self) -> &DRMDumbMemoryRef
Immutably borrows from an owned value. Read more
source§impl Debug for DRMDumbMemoryRef
impl Debug for DRMDumbMemoryRef
source§impl Deref for DRMDumbMemoryRef
impl Deref for DRMDumbMemoryRef
source§impl DerefMut for DRMDumbMemoryRef
impl DerefMut for DRMDumbMemoryRef
source§impl<'a> FromValue<'a> for &'a DRMDumbMemoryRef
impl<'a> FromValue<'a> for &'a DRMDumbMemoryRef
§type Checker = MemoryTypeValueTypeChecker<DRMDumbMemory>
type Checker = MemoryTypeValueTypeChecker<DRMDumbMemory>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl GlibPtrDefault for DRMDumbMemoryRef
impl GlibPtrDefault for DRMDumbMemoryRef
source§impl StaticType for DRMDumbMemoryRef
impl StaticType for DRMDumbMemoryRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for DRMDumbMemoryRef
impl ToOwned for DRMDumbMemoryRef
§type Owned = DRMDumbMemory
type Owned = DRMDumbMemory
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> DRMDumbMemory
fn to_owned(&self) -> DRMDumbMemory
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Send for DRMDumbMemoryRef
impl Sync for DRMDumbMemoryRef
Auto Trait Implementations§
impl Freeze for DRMDumbMemoryRef
impl RefUnwindSafe for DRMDumbMemoryRef
impl Unpin for DRMDumbMemoryRef
impl UnwindSafe for DRMDumbMemoryRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.