Struct gstreamer::query::Allocation
source · pub struct Allocation<T = QueryRef>(/* private fields */);
Implementations§
source§impl Allocation
impl Allocation
source§impl Allocation<Query>
impl Allocation<Query>
pub fn get_mut(&mut self) -> Option<&mut Allocation>
source§impl Allocation
impl Allocation
pub fn get(&self) -> (Option<&CapsRef>, bool)
pub fn get_owned(&self) -> (Option<Caps>, bool)
pub fn allocation_params(&self) -> Vec<(Option<Allocator>, AllocationParams)>
pub fn allocation_pools(&self) -> Vec<(Option<BufferPool>, u32, u32, u32)>
pub fn allocation_metas(&self) -> Vec<(Type, Option<&StructureRef>)>
pub fn find_allocation_meta<U: MetaAPI>(&self) -> Option<u32>
pub fn add_allocation_pool( &mut self, pool: Option<&impl IsA<BufferPool>>, size: u32, min_buffers: u32, max_buffers: u32 )
pub fn set_nth_allocation_pool( &mut self, idx: u32, pool: Option<&impl IsA<BufferPool>>, size: u32, min_buffers: u32, max_buffers: u32 )
pub fn remove_nth_allocation_pool(&mut self, idx: u32)
pub fn add_allocation_param( &mut self, allocator: Option<&impl IsA<Allocator>>, params: AllocationParams )
pub fn set_nth_allocation_param( &mut self, idx: u32, allocator: Option<&impl IsA<Allocator>>, params: AllocationParams )
pub fn remove_nth_allocation_param(&mut self, idx: u32)
pub fn add_allocation_meta<U: MetaAPI>( &mut self, structure: Option<&StructureRef> )
pub fn remove_nth_allocation_meta(&mut self, idx: u32)
Trait Implementations§
source§impl Borrow<Allocation> for Allocation<Query>
impl Borrow<Allocation> for Allocation<Query>
source§fn borrow(&self) -> &Allocation
fn borrow(&self) -> &Allocation
Immutably borrows from an owned value. Read more
source§impl BorrowMut<Allocation> for Allocation<Query>
impl BorrowMut<Allocation> for Allocation<Query>
source§fn borrow_mut(&mut self) -> &mut Allocation
fn borrow_mut(&mut self) -> &mut Allocation
Mutably borrows from an owned value. Read more
source§impl Debug for Allocation
impl Debug for Allocation
source§impl Debug for Allocation<Query>
impl Debug for Allocation<Query>
source§impl Deref for Allocation
impl Deref for Allocation
source§impl Deref for Allocation<Query>
impl Deref for Allocation<Query>
source§impl DerefMut for Allocation
impl DerefMut for Allocation
source§impl DerefMut for Allocation<Query>
impl DerefMut for Allocation<Query>
source§impl From<Allocation<Query>> for Query
impl From<Allocation<Query>> for Query
source§fn from(concrete: Allocation<Query>) -> Self
fn from(concrete: Allocation<Query>) -> Self
Converts to this type from the input type.
source§impl ToOwned for Allocation
impl ToOwned for Allocation
§type Owned = Allocation<Query>
type Owned = Allocation<Query>
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl<T> Freeze for Allocation<T>where
T: Freeze,
impl<T> RefUnwindSafe for Allocation<T>where
T: RefUnwindSafe,
impl<T> Send for Allocation<T>where
T: Send,
impl<T> Sync for Allocation<T>where
T: Sync,
impl<T> Unpin for Allocation<T>where
T: Unpin,
impl<T> UnwindSafe for Allocation<T>where
T: UnwindSafe,
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