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

pub struct Memory { /* fields omitted */ }

Implementations

Fill info with the pointer and sizes of the memory in self that can be accessed according to flags.

This function can return false for various reasons:

  • the memory backed by self is not accessible with the given flags.
  • the memory was already mapped with a different mapping.

info and its contents remain valid for as long as self is valid and until gst_memory_unmap() is called.

For each into_mapped_memory_readable() call, a corresponding gst_memory_unmap() call should be done.

flags

mapping flags

Returns

true if the map operation was successful.

info

pointer for info

Methods from Deref<Target = MemoryRef>

Trait Implementations

Performs the conversion.

Immutably borrows from an owned value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Executes the destructor for this type. Read more

Safety Read more

Safety Read more

Safety Read more

Safety Read more

Safety Read more

Value type checker.

Get the contained value from a Value. Read more

Returns the type identifier of Self.

Transfer: none. Read more

Transfer: full. Read more

Transfer: container. Read more

Transfer: none. Read more

Transfer: full. Read more

Transfer: container. Read more

Transfer: none. Read more

Convert a value to a Value.

Returns the type identifer of self. Read more

Convert an Option to a Value.

Type to get the Type from. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

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

recently added

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

Returns a SendValue clone of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.