Struct gstreamer::query::Allocation
source · #[repr(transparent)]pub struct Allocation<T = QueryRef>(_);
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) -> (&CapsRef, bool)
pub fn get_owned(&self) -> (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)
Methods from Deref<Target = QueryRef>§
pub fn as_ptr(&self) -> *const GstQuery
pub fn as_mut_ptr(&self) -> *mut GstQuery
pub fn copy(&self) -> Query
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn structure(&self) -> Option<&StructureRef>
pub fn structure_mut(&mut self) -> &mut StructureRef
pub fn is_downstream(&self) -> bool
pub fn is_upstream(&self) -> bool
pub fn is_serialized(&self) -> bool
pub fn view(&self) -> QueryView<'_>
pub fn view_mut(&mut self) -> QueryViewMut<'_>
Trait Implementations§
source§impl Borrow<Allocation<QueryRef>> for Allocation<Query>
impl Borrow<Allocation<QueryRef>> for Allocation<Query>
source§fn borrow(&self) -> &Allocation
fn borrow(&self) -> &Allocation
Immutably borrows from an owned value. Read more
source§impl BorrowMut<Allocation<QueryRef>> for Allocation<Query>
impl BorrowMut<Allocation<QueryRef>> 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<T: Debug> Debug for Allocation<T>
impl<T: Debug> Debug for Allocation<T>
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