[][src]Struct gstreamer::memory::Memory

pub struct Memory { /* fields omitted */ }

Implementations

impl Memory[src]

pub unsafe fn from_glib_none(ptr: *const GstMemory) -> Self[src]

pub unsafe fn from_glib_full(ptr: *const GstMemory) -> Self[src]

pub unsafe fn from_glib_borrow(ptr: *const GstMemory) -> Borrowed<Self>[src]

pub unsafe fn replace_ptr(&mut self, ptr: *mut GstMemory)[src]

pub fn make_mut(&mut self) -> &mut MemoryRef[src]

pub fn get_mut(&mut self) -> Option<&mut MemoryRef>[src]

pub fn is_writable(&self) -> bool[src]

pub unsafe fn into_ptr(self) -> *mut GstMemory[src]

impl Memory[src]

pub fn with_size(size: usize) -> Self[src]

pub fn with_size_and_params(size: usize, params: &AllocationParams) -> Self[src]

pub fn from_slice<T: AsRef<[u8]> + Send + 'static>(slice: T) -> Self[src]

pub fn from_mut_slice<T: AsMut<[u8]> + Send + 'static>(slice: T) -> Self[src]

pub fn into_mapped_memory_readable(self) -> Result<MappedMemory<Readable>, Self>[src]

pub fn into_mapped_memory_writable(self) -> Result<MappedMemory<Writable>, Self>[src]

Methods from Deref<Target = MemoryRef>

pub unsafe fn as_ptr(&self) -> *const GstMemory[src]

pub unsafe fn as_mut_ptr(&self) -> *mut GstMemory[src]

pub fn copy(&self) -> Memory[src]

pub fn get_allocator(&self) -> Option<Allocator>[src]

pub fn get_parent(&self) -> Option<&MemoryRef>[src]

pub fn get_maxsize(&self) -> usize[src]

pub fn get_align(&self) -> usize[src]

pub fn get_offset(&self) -> usize[src]

pub fn get_size(&self) -> usize[src]

pub fn get_flags(&self) -> MemoryFlags[src]

pub fn copy_part(&self, offset: isize, size: Option<usize>) -> Memory[src]

pub fn is_span(&self, mem2: &MemoryRef) -> Option<usize>[src]

pub fn is_type(&self, mem_type: &str) -> bool[src]

pub fn map_readable(&self) -> Result<MemoryMap<'_, Readable>, BoolError>[src]

pub fn share(&self, offset: isize, size: Option<usize>) -> Memory[src]

pub fn dump(&self, size: Option<usize>) -> Dump<'_>[src]

Trait Implementations

impl AsRef<MemoryRef> for Memory[src]

impl Borrow<MemoryRef> for Memory[src]

impl Clone for Memory[src]

impl Debug for Memory[src]

impl Deref for Memory[src]

type Target = MemoryRef

The resulting type after dereferencing.

impl Drop for Memory[src]

impl FromGlibContainerAsVec<*mut GstMemory, *const *mut GstMemory> for Memory[src]

impl FromGlibContainerAsVec<*mut GstMemory, *mut *mut GstMemory> for Memory[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstMemory, *const *mut GstMemory> for Memory[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstMemory, *mut *mut GstMemory> for Memory[src]

impl FromGlibPtrBorrow<*const GstMemory> for Memory[src]

impl FromGlibPtrBorrow<*mut GstMemory> for Memory[src]

impl FromGlibPtrFull<*const GstMemory> for Memory[src]

impl FromGlibPtrFull<*mut GstMemory> for Memory[src]

impl FromGlibPtrNone<*const GstMemory> for Memory[src]

impl FromGlibPtrNone<*mut GstMemory> for Memory[src]

impl<'a> FromValueOptional<'a> for Memory[src]

impl GlibPtrDefault for Memory[src]

type GlibType = *mut GstMemory

impl Send for Memory[src]

impl SetValue for Memory[src]

impl SetValueOptional for Memory[src]

impl StaticType for Memory[src]

impl Sync for Memory[src]

impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMemory> for Memory[src]

impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMemory> for Memory[src]

type Storage = (Vec<Stash<'a, *mut GstMemory, Self>>, Option<Vec<*mut GstMemory>>)

impl<'a> ToGlibPtr<'a, *const GstMemory> for Memory[src]

type Storage = &'a Self

impl<'a> ToGlibPtr<'a, *mut GstMemory> for Memory[src]

type Storage = &'a Self

impl<'a> ToGlibPtrMut<'a, *mut GstMemory> for Memory[src]

type Storage = &'a mut Self

Auto Trait Implementations

impl RefUnwindSafe for Memory

impl Unpin for Memory

impl UnwindSafe for Memory

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.