Struct gstreamer::query::Allocation
source · [−]pub struct Allocation<T>(_);
Implementations
sourceimpl<T: AsPtr> Allocation<T>
impl<T: AsPtr> Allocation<T>
pub fn get(&self) -> (&CapsRef, bool)
pub fn get_owned(&self) -> (Caps, bool)
pub fn allocation_params(&self) -> Vec<(Option<Allocator>, AllocationParams)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn allocation_pools(&self) -> Vec<(Option<BufferPool>, u32, u32, u32)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn allocation_metas(&self) -> Vec<(Type, Option<&StructureRef>)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn find_allocation_meta<U: MetaAPI>(&self) -> Option<u32>
sourceimpl<T: AsMutPtr> Allocation<T>
impl<T: AsMutPtr> Allocation<T>
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 unsafe fn as_ptr(&self) -> *const GstQuery
pub unsafe 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<&Self>
pub fn view_mut(&mut self) -> QueryView<&mut Self>
Trait Implementations
sourceimpl<T: Debug> Debug for Allocation<T>
impl<T: Debug> Debug for Allocation<T>
sourceimpl<'a> Deref for Allocation<&'a QueryRef>
impl<'a> Deref for Allocation<&'a QueryRef>
sourceimpl<'a> Deref for Allocation<&'a mut QueryRef>
impl<'a> Deref for Allocation<&'a mut QueryRef>
sourceimpl Deref for Allocation<Query>
impl Deref for Allocation<Query>
sourceimpl DerefMut for Allocation<Query>
impl DerefMut for Allocation<Query>
sourceimpl From<Allocation<Query>> for Query
impl From<Allocation<Query>> for Query
sourcefn from(concrete: Allocation<Query>) -> Self
fn from(concrete: Allocation<Query>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more