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

pub struct Memory(_);

Methods

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) -> Self[src]

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

pub fn copy(&self) -> Self[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 = GstRc<MemoryRef>>

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

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

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

pub fn add_parent<U: MiniObject>(&self, parent: &U)[src]

pub fn remove_parent<U: MiniObject>(&self, parent: &U)[src]

Trait Implementations

impl From<GstRc<MemoryRef>> for Memory[src]

impl AsRef<MemoryRef> for Memory[src]

impl Clone for Memory[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Into<GstRc<MemoryRef>> for Memory[src]

impl DerefMut for Memory[src]

impl Deref for Memory[src]

type Target = GstRc<MemoryRef>

The resulting type after dereferencing.

impl Debug for Memory[src]

impl Borrow<MemoryRef> for Memory[src]

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

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

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

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

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

type Storage = Stash<'a, *const GstMemory, GstRc<MemoryRef>>

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

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

type Storage = Stash<'a, *mut GstMemory, GstRc<MemoryRef>>

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

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

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

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

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

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

type Storage = StashMut<'a, *mut GstMemory, GstRc<MemoryRef>>

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

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

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

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

impl GlibPtrDefault for Memory[src]

impl StaticType for Memory[src]

impl SetValue for Memory[src]

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

impl SetValueOptional for Memory[src]

Auto Trait Implementations

impl Send for Memory

impl Sync for Memory

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[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 GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

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

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

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