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

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 allocator(&self) -> Option<Allocator>[src]

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

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

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

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

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

pub fn 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]

fn as_ref(&self) -> &MemoryRef[src]

Performs the conversion.

impl Borrow<MemoryRef> for Memory[src]

fn borrow(&self) -> &MemoryRef[src]

Immutably borrows from an owned value. Read more

impl Clone for Memory[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Memory[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Deref for Memory[src]

type Target = MemoryRef

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

impl Drop for Memory[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

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

unsafe fn from_glib_none_num_as_vec(
    ptr: *const *mut GstMemory,
    num: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_container_num_as_vec(
    _: *const *mut GstMemory,
    _: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_full_num_as_vec(
    _: *const *mut GstMemory,
    _: usize
) -> Vec<Self>
[src]

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

unsafe fn from_glib_none_num_as_vec(
    ptr: *mut *mut GstMemory,
    num: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_container_num_as_vec(
    ptr: *mut *mut GstMemory,
    num: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_full_num_as_vec(
    ptr: *mut *mut GstMemory,
    num: usize
) -> Vec<Self>
[src]

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

unsafe fn from_glib_none_as_vec(ptr: *const *mut GstMemory) -> Vec<Self>[src]

unsafe fn from_glib_container_as_vec(_: *const *mut GstMemory) -> Vec<Self>[src]

unsafe fn from_glib_full_as_vec(_: *const *mut GstMemory) -> Vec<Self>[src]

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

unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstMemory) -> Vec<Self>[src]

unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstMemory) -> Vec<Self>[src]

unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstMemory) -> Vec<Self>[src]

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

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

Safety Read more

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

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

Safety Read more

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

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

Safety Read more

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

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

Safety Read more

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

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

Safety Read more

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

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

Safety Read more

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

type Checker = GenericValueTypeOrNoneChecker<Self>

Value type checker.

unsafe fn from_value(value: &'a Value) -> Self[src]

Get the contained value from a Value. Read more

impl GlibPtrDefault for Memory[src]

type GlibType = *mut GstMemory

impl StaticType for Memory[src]

fn static_type() -> Type[src]

Returns the type identifier of Self.

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>>)

fn to_glib_none_from_slice(
    t: &'a [Memory]
) -> (*mut *mut GstMemory, Self::Storage)
[src]

fn to_glib_container_from_slice(
    t: &'a [Memory]
) -> (*mut *mut GstMemory, Self::Storage)
[src]

fn to_glib_full_from_slice(t: &[Memory]) -> *mut *mut GstMemory[src]

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

type Storage = &'a Self

fn to_glib_none(&'a self) -> Stash<'a, *const GstMemory, Self>[src]

Transfer: none. Read more

fn to_glib_full(&self) -> *const GstMemory[src]

Transfer: full. Read more

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 = &'a Self

fn to_glib_none(&'a self) -> Stash<'a, *mut GstMemory, Self>[src]

Transfer: none. Read more

fn to_glib_full(&self) -> *mut GstMemory[src]

Transfer: full. Read more

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

Transfer: container. Read more

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

type Storage = &'a mut Self

fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstMemory, Self>[src]

Transfer: none. Read more

impl ToValue for Memory[src]

fn to_value(&self) -> Value[src]

Convert a value to a Value.

fn value_type(&self) -> Type[src]

Returns the type identifer of self. Read more

impl ToValueOptional for Memory[src]

fn to_value_optional(s: Option<&Self>) -> Value[src]

Convert an Option to a Value.

impl ValueType for Memory[src]

type Type = Self

Type to get the Type from. Read more

impl Send for Memory[src]

impl Sync for Memory[src]

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

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

Immutably borrows from an owned value. Read more

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

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

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

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

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

pub fn to_send_value(&self) -> SendValue[src]

Returns a SendValue clone of self.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<'a, T, C> FromValueOptional<'a> for T where
    C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
    T: FromValue<'a, Checker = C>, 
[src]