Struct gstreamer::BufferPoolConfig
source · [−]#[repr(transparent)]pub struct BufferPoolConfig(_);
Methods from Deref<Target = BufferPoolConfigRef>
pub unsafe fn as_ptr(&self) -> *const GstStructure
pub unsafe fn as_mut_ptr(&self) -> *mut GstStructure
pub fn add_option(&mut self, option: &str)
pub fn has_option(&self, option: &str) -> bool
pub fn options(&self) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn set_params(
&mut self,
caps: Option<&Caps>,
size: u32,
min_buffers: u32,
max_buffers: u32
)
pub fn params(&self) -> Option<(Option<Caps>, u32, u32, u32)>
pub fn validate_params(
&self,
caps: Option<&Caps>,
size: u32,
min_buffers: u32,
max_buffers: u32
) -> Result<(), BoolError>
pub fn allocator(&self) -> Option<(Option<Allocator>, AllocationParams)>
pub fn set_allocator(
&self,
allocator: Option<&Allocator>,
params: Option<&AllocationParams>
)
Methods from Deref<Target = StructureRef>
pub unsafe fn as_ptr(&self) -> *const GstStructure
pub unsafe fn as_mut_ptr(&self) -> *mut GstStructure
pub fn get<'a, T: FromValue<'a>>(&'a self, name: &str) -> Result<T, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
pub fn get_optional<'a, T: FromValue<'a>>(
&'a self,
name: &str
) -> Result<Option<T>, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
pub fn value(&self, name: &str) -> Result<&SendValue, GetError>
pub fn get_by_quark<'a, T: FromValue<'a>>(
&'a self,
name: Quark
) -> Result<T, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
pub fn get_optional_by_quark<'a, T: FromValue<'a>>(
&'a self,
name: Quark
) -> Result<Option<T>, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
pub fn value_by_quark(&self, name: Quark) -> Result<&SendValue, GetError>
pub fn set<T: ToSendValue + Sync>(&mut self, name: &str, value: T)
pub fn set_value(&mut self, name: &str, value: SendValue)
pub fn set_by_quark<T: ToSendValue + Sync>(&mut self, name: Quark, value: T)
pub fn set_value_by_quark(&mut self, name: Quark, value: SendValue)
pub fn name<'a>(&self) -> &'a str
pub fn name_quark(&self) -> Quark
pub fn set_name(&mut self, name: &str)
pub fn has_name(&self, name: &str) -> bool
pub fn has_field(&self, field: &str) -> bool
pub fn has_field_with_type(&self, field: &str, type_: Type) -> bool
pub fn has_field_by_quark(&self, field: Quark) -> bool
pub fn has_field_with_type_by_quark(&self, field: Quark, type_: Type) -> bool
pub fn remove_field(&mut self, field: &str)
pub fn remove_fields(&mut self, fields: &[&str])
pub fn remove_all_fields(&mut self)
pub fn fields(&self) -> FieldIterator<'_>ⓘNotable traits for FieldIterator<'a>impl<'a> Iterator for FieldIterator<'a> type Item = &'static str;
pub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'a>impl<'a> Iterator for Iter<'a> type Item = (&'static str, &'a SendValue);
pub fn nth_field_name<'a>(&self, idx: u32) -> Option<&'a str>
pub fn n_fields(&self) -> u32
pub fn can_intersect(&self, other: &StructureRef) -> bool
pub fn intersect(&self, other: &StructureRef) -> Option<Structure>
pub fn is_subset(&self, superset: &StructureRef) -> bool
pub fn fixate(&mut self)
pub fn fixate_field(&mut self, name: &str) -> bool
pub fn fixate_field_bool(&mut self, name: &str, target: bool) -> bool
pub fn fixate_field_str(&mut self, name: &str, target: &str) -> bool
pub fn fixate_field_nearest_double(&mut self, name: &str, target: f64) -> bool
pub fn fixate_field_nearest_fraction<T: Into<Fraction>>(
&mut self,
name: &str,
target: T
) -> bool
pub fn fixate_field_nearest_int(&mut self, name: &str, target: i32) -> bool
pub fn serialize(&self, flags: SerializeFlags) -> GString
Available on crate feature
v1_20
only.pub fn foreach<F: FnMut(Quark, &Value) -> ControlFlow<()>>(
&self,
func: F
) -> bool
pub fn map_in_place<F: FnMut(Quark, &mut Value) -> ControlFlow<()>>(
&mut self,
func: F
) -> bool
pub fn filter_map_in_place<F: FnMut(Quark, Value) -> Option<Value>>(
&mut self,
func: F
)
Trait Implementations
sourceimpl AsMut<BufferPoolConfigRef> for BufferPoolConfig
impl AsMut<BufferPoolConfigRef> for BufferPoolConfig
sourcefn as_mut(&mut self) -> &mut BufferPoolConfigRef
fn as_mut(&mut self) -> &mut BufferPoolConfigRef
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<BufferPoolConfigRef> for BufferPoolConfig
impl AsRef<BufferPoolConfigRef> for BufferPoolConfig
sourcefn as_ref(&self) -> &BufferPoolConfigRef
fn as_ref(&self) -> &BufferPoolConfigRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for BufferPoolConfig
impl Clone for BufferPoolConfig
sourcefn clone(&self) -> BufferPoolConfig
fn clone(&self) -> BufferPoolConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BufferPoolConfig
impl Debug for BufferPoolConfig
sourceimpl Deref for BufferPoolConfig
impl Deref for BufferPoolConfig
type Target = BufferPoolConfigRef
type Target = BufferPoolConfigRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &BufferPoolConfigRef
fn deref(&self) -> &BufferPoolConfigRef
Dereferences the value.
sourceimpl DerefMut for BufferPoolConfig
impl DerefMut for BufferPoolConfig
sourcefn deref_mut(&mut self) -> &mut BufferPoolConfigRef
fn deref_mut(&mut self) -> &mut BufferPoolConfigRef
Mutably dereferences the value.
sourceimpl PartialEq<BufferPoolConfig> for BufferPoolConfig
impl PartialEq<BufferPoolConfig> for BufferPoolConfig
sourcefn eq(&self, other: &BufferPoolConfig) -> bool
fn eq(&self, other: &BufferPoolConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BufferPoolConfig) -> bool
fn ne(&self, other: &BufferPoolConfig) -> bool
This method tests for !=
.
impl Eq for BufferPoolConfig
impl StructuralEq for BufferPoolConfig
impl StructuralPartialEq for BufferPoolConfig
Auto Trait Implementations
impl RefUnwindSafe for BufferPoolConfig
impl Send for BufferPoolConfig
impl Sync for BufferPoolConfig
impl Unpin for BufferPoolConfig
impl UnwindSafe for BufferPoolConfig
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more