Struct Phys Memory 
Source pub struct PhysMemory { /* private fields */ }Implementations§
Source§impl PhysMemory
 
impl PhysMemory
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GstMemory) -> &Self
pub unsafe fn from_glib_none(ptr: *const GstMemory) -> Self
pub unsafe fn from_glib_full(ptr: *const GstMemory) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstMemory) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstMemory)
pub fn make_mut(&mut self) -> &mut PhysMemoryRef
pub fn get_mut(&mut self) -> Option<&mut PhysMemoryRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
Source§impl PhysMemory
 
impl PhysMemory
pub fn downcast_memory<M: MemoryType>(self) -> Result<M, Self>where
    <M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef> + AsRef<PhysMemoryRef> + AsMut<PhysMemoryRef>,
pub fn upcast_memory<M>(self) -> Mwhere
    M: MemoryType + FromGlibPtrFull<*const <M as IsMiniObject>::FfiType>,
    <M as IsMiniObject>::RefType: AsRef<MemoryRef> + AsMut<MemoryRef>,
    Self: AsRef<M>,
Methods from Deref<Target = PhysMemoryRef>§
pub fn as_ptr(&self) -> *const GstMemory
pub fn as_mut_ptr(&self) -> *mut GstMemory
pub fn copy(&self) -> PhysMemory
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_memory_ref<M>(&self) -> &M::RefType
pub fn phys_addr(&self) -> uintptr_t
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 AsRef<Memory> for PhysMemory
 
impl AsRef<Memory> for PhysMemory
Source§impl AsRef<PhysMemoryRef> for PhysMemory
 
impl AsRef<PhysMemoryRef> for PhysMemory
Source§fn as_ref(&self) -> &PhysMemoryRef
 
fn as_ref(&self) -> &PhysMemoryRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<PhysMemoryRef> for PhysMemory
 
impl Borrow<PhysMemoryRef> for PhysMemory
Source§fn borrow(&self) -> &PhysMemoryRef
 
fn borrow(&self) -> &PhysMemoryRef
Immutably borrows from an owned value. Read more
Source§impl Clone for PhysMemory
 
impl Clone for PhysMemory
Source§impl Debug for PhysMemory
 
impl Debug for PhysMemory
Source§impl Deref for PhysMemory
 
impl Deref for PhysMemory
Source§impl Drop for PhysMemory
 
impl Drop for PhysMemory
Source§impl From<PhysMemory> for Value
 
impl From<PhysMemory> for Value
Source§fn from(v: PhysMemory) -> Value
 
fn from(v: PhysMemory) -> Value
Converts to this type from the input type.
Source§impl FromGlibPtrBorrow<*const GstMemory> for PhysMemory
 
impl FromGlibPtrBorrow<*const GstMemory> for PhysMemory
Source§impl FromGlibPtrBorrow<*mut GstMemory> for PhysMemory
 
impl FromGlibPtrBorrow<*mut GstMemory> for PhysMemory
Source§impl FromGlibPtrFull<*const GstMemory> for PhysMemory
 
impl FromGlibPtrFull<*const GstMemory> for PhysMemory
Source§impl FromGlibPtrFull<*mut GstMemory> for PhysMemory
 
impl FromGlibPtrFull<*mut GstMemory> for PhysMemory
Source§impl FromGlibPtrNone<*const GstMemory> for PhysMemory
 
impl FromGlibPtrNone<*const GstMemory> for PhysMemory
Source§impl FromGlibPtrNone<*mut GstMemory> for PhysMemory
 
impl FromGlibPtrNone<*mut GstMemory> for PhysMemory
Source§impl<'a> FromValue<'a> for &'a PhysMemory
 
impl<'a> FromValue<'a> for &'a PhysMemory
Source§type Checker = MemoryTypeValueTypeChecker<PhysMemory>
 
type Checker = MemoryTypeValueTypeChecker<PhysMemory>
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<'a> FromValue<'a> for PhysMemory
 
impl<'a> FromValue<'a> for PhysMemory
Source§type Checker = MemoryTypeValueTypeChecker<PhysMemory>
 
type Checker = MemoryTypeValueTypeChecker<PhysMemory>
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 PhysMemory
 
impl GlibPtrDefault for PhysMemory
Source§impl IntoGlibPtr<*mut GstMemory> for PhysMemory
 
impl IntoGlibPtr<*mut GstMemory> for PhysMemory
Source§fn into_glib_ptr(self) -> *mut GstMemory
 
fn into_glib_ptr(self) -> *mut GstMemory
Transfer: full.
Source§impl IsMiniObject for PhysMemory
 
impl IsMiniObject for PhysMemory
Source§impl MemoryType for PhysMemory
 
impl MemoryType for PhysMemory
fn check_memory_type(mem: &MemoryRef) -> bool
Source§impl StaticType for PhysMemory
 
impl StaticType for PhysMemory
Source§fn static_type() -> Type
 
fn static_type() -> Type
Returns the type identifier of 
Self.Source§impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMemory> for PhysMemory
 
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMemory> for PhysMemory
type Storage = (PhantomData<&'a [PhysMemory]>, Option<Vec<*mut GstMemory>>)
fn to_glib_none_from_slice( t: &'a [PhysMemory], ) -> (*const *mut GstMemory, Self::Storage)
fn to_glib_container_from_slice( _: &'a [PhysMemory], ) -> (*const *mut GstMemory, Self::Storage)
fn to_glib_full_from_slice(_: &[PhysMemory]) -> *const *mut GstMemory
Source§impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMemory> for PhysMemory
 
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMemory> for PhysMemory
type Storage = (PhantomData<&'a [PhysMemory]>, Option<Vec<*mut GstMemory>>)
fn to_glib_none_from_slice( t: &'a [PhysMemory], ) -> (*mut *mut GstMemory, Self::Storage)
fn to_glib_container_from_slice( t: &'a [PhysMemory], ) -> (*mut *mut GstMemory, Self::Storage)
fn to_glib_full_from_slice(t: &[PhysMemory]) -> *mut *mut GstMemory
Source§impl<'a> ToGlibPtr<'a, *const GstMemory> for PhysMemory
 
impl<'a> ToGlibPtr<'a, *const GstMemory> for PhysMemory
type Storage = PhantomData<&'a PhysMemory>
Source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
 
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
Source§impl<'a> ToGlibPtr<'a, *mut GstMemory> for PhysMemory
 
impl<'a> ToGlibPtr<'a, *mut GstMemory> for PhysMemory
type Storage = PhantomData<&'a PhysMemory>
Source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
 
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
Source§impl<'a> ToGlibPtrMut<'a, *mut GstMemory> for PhysMemory
 
impl<'a> ToGlibPtrMut<'a, *mut GstMemory> for PhysMemory
type Storage = PhantomData<&'a mut PhysMemory>
Source§impl ToValue for PhysMemory
 
impl ToValue for PhysMemory
Source§impl ToValueOptional for PhysMemory
 
impl ToValueOptional for PhysMemory
Source§fn to_value_optional(s: Option<&Self>) -> Value
 
fn to_value_optional(s: Option<&Self>) -> Value
Convert an 
Option to a Value.Source§impl ValueType for PhysMemory
 
impl ValueType for PhysMemory
Source§type Type = PhysMemory
 
type Type = PhysMemory
Type to get the 
Type from. Read moreimpl Send for PhysMemory
impl Sync for PhysMemory
impl TransparentPtrType for PhysMemory
Auto Trait Implementations§
impl Freeze for PhysMemory
impl RefUnwindSafe for PhysMemory
impl Unpin for PhysMemory
impl UnwindSafe for PhysMemory
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
 
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
    T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
Source§impl<T> IntoClosureReturnValue for T
 
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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.
Source§impl<T> ToSendValue for T
 
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
 
fn to_send_value(&self) -> SendValue
Returns a 
SendValue clone of self.