Struct gstreamer::AllocationParams
source · pub struct AllocationParams(/* private fields */);
Expand description
Parameters to control the allocation of memory
Implementations§
source§impl AllocationParams
impl AllocationParams
pub fn flags(&self) -> MemoryFlags
pub fn align(&self) -> usize
pub fn prefix(&self) -> usize
pub fn padding(&self) -> usize
sourcepub fn new(
flags: MemoryFlags,
align: usize,
prefix: usize,
padding: usize
) -> Self
pub fn new( flags: MemoryFlags, align: usize, prefix: usize, padding: usize ) -> Self
Create a new AllocationParams
on the heap. This function is for
use in GStreamer language bindings. In your own code, you can just
declare a AllocationParams
on the stack or in a struct, and
call [init()
][Self::init()] to initialize it.
You do not need to call [init()
][Self::init()] on the instance
returned by this function.
§Returns
a new AllocationParams
pub fn as_ptr(&self) -> *const GstAllocationParams
Trait Implementations§
source§impl Clone for AllocationParams
impl Clone for AllocationParams
source§fn clone(&self) -> AllocationParams
fn clone(&self) -> AllocationParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AllocationParams
impl Debug for AllocationParams
source§impl Default for AllocationParams
impl Default for AllocationParams
source§impl From<GstAllocationParams> for AllocationParams
impl From<GstAllocationParams> for AllocationParams
source§fn from(params: GstAllocationParams) -> Self
fn from(params: GstAllocationParams) -> Self
Converts to this type from the input type.
source§impl FromGlib<GstAllocationParams> for AllocationParams
impl FromGlib<GstAllocationParams> for AllocationParams
unsafe fn from_glib(value: GstAllocationParams) -> Self
impl Send for AllocationParams
impl Sync for AllocationParams
Auto Trait Implementations§
impl RefUnwindSafe for AllocationParams
impl Unpin for AllocationParams
impl UnwindSafe for AllocationParams
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