[−][src]Struct gstreamer::BufferPoolConfig
Implementations
impl BufferPoolConfig
[src]
pub fn add_option(&mut self, option: &str)
[src]
pub fn has_option(&self, option: &str) -> bool
[src]
pub fn get_options(&self) -> Vec<String>
[src]
pub fn set_params(
&mut self,
caps: Option<&Caps>,
size: u32,
min_buffers: u32,
max_buffers: u32
)
[src]
&mut self,
caps: Option<&Caps>,
size: u32,
min_buffers: u32,
max_buffers: u32
)
pub fn get_params(&self) -> Option<(Option<Caps>, u32, u32, u32)>
[src]
pub fn validate_params(
&self,
caps: Option<&Caps>,
size: u32,
min_buffers: u32,
max_buffers: u32
) -> Result<(), BoolError>
[src]
&self,
caps: Option<&Caps>,
size: u32,
min_buffers: u32,
max_buffers: u32
) -> Result<(), BoolError>
pub fn get_allocator(&self) -> Option<(Option<Allocator>, AllocationParams)>
[src]
pub fn set_allocator(
&self,
allocator: Option<&Allocator>,
params: Option<&AllocationParams>
)
[src]
&self,
allocator: Option<&Allocator>,
params: Option<&AllocationParams>
)
Methods from Deref<Target = StructureRef>
pub unsafe fn as_ptr(&self) -> *const GstStructure
[src]
pub unsafe fn as_mut_ptr(&self) -> *mut GstStructure
[src]
pub fn get<'structure, 'name, T: FromValueOptional<'structure>>(
&'structure self,
name: &'name str
) -> Result<Option<T>, GetError<'name>>
[src]
&'structure self,
name: &'name str
) -> Result<Option<T>, GetError<'name>>
pub fn get_optional<'structure, 'name, T: FromValueOptional<'structure>>(
&'structure self,
name: &'name str
) -> Result<Option<T>, GetError<'name>>
[src]
&'structure self,
name: &'name str
) -> Result<Option<T>, GetError<'name>>
pub fn get_some<'structure, 'name, T: FromValue<'structure>>(
&'structure self,
name: &'name str
) -> Result<T, GetError<'name>>
[src]
&'structure self,
name: &'name str
) -> Result<T, GetError<'name>>
pub fn get_value<'structure, 'name>(
&'structure self,
name: &'name str
) -> Result<&SendValue, GetError<'name>>
[src]
&'structure self,
name: &'name str
) -> Result<&SendValue, GetError<'name>>
pub fn set<T: ToSendValue>(&mut self, name: &str, value: &T)
[src]
pub fn set_value(&mut self, name: &str, value: SendValue)
[src]
pub fn get_name<'a>(&self) -> &'a str
[src]
pub fn set_name(&mut self, name: &str)
[src]
pub fn has_field(&self, field: &str) -> bool
[src]
pub fn has_field_with_type(&self, field: &str, type_: Type) -> bool
[src]
pub fn remove_field(&mut self, field: &str)
[src]
pub fn remove_fields(&mut self, fields: &[&str])
[src]
pub fn remove_all_fields(&mut self)
[src]
pub fn fields(&self) -> FieldIterator<'_>ⓘNotable traits for FieldIterator<'a>
impl<'a> Iterator for FieldIterator<'a> type Item = &'static str;
[src]
Notable traits for FieldIterator<'a>
impl<'a> Iterator for FieldIterator<'a> type Item = &'static str;
pub fn iter(&self) -> Iter<'_>ⓘ
[src]
pub fn get_nth_field_name<'a>(&self, idx: u32) -> Option<&'a str>
[src]
pub fn n_fields(&self) -> u32
[src]
pub fn can_intersect(&self, other: &StructureRef) -> bool
[src]
pub fn intersect(&self, other: &StructureRef) -> Option<Structure>
[src]
pub fn is_subset(&self, superset: &StructureRef) -> bool
[src]
pub fn fixate(&mut self)
[src]
pub fn fixate_field(&mut self, name: &str) -> bool
[src]
pub fn fixate_field_bool(&mut self, name: &str, target: bool) -> bool
[src]
pub fn fixate_field_str(&mut self, name: &str, target: &str) -> bool
[src]
pub fn fixate_field_nearest_double(&mut self, name: &str, target: f64) -> bool
[src]
pub fn fixate_field_nearest_fraction<T: Into<Fraction>>(
&mut self,
name: &str,
target: T
) -> bool
[src]
&mut self,
name: &str,
target: T
) -> bool
pub fn fixate_field_nearest_int(&mut self, name: &str, target: i32) -> bool
[src]
Trait Implementations
impl AsMut<StructureRef> for BufferPoolConfig
[src]
fn as_mut(&mut self) -> &mut StructureRef
[src]
impl AsRef<StructureRef> for BufferPoolConfig
[src]
fn as_ref(&self) -> &StructureRef
[src]
impl Clone for BufferPoolConfig
[src]
fn clone(&self) -> BufferPoolConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BufferPoolConfig
[src]
impl Deref for BufferPoolConfig
[src]
type Target = StructureRef
The resulting type after dereferencing.
fn deref(&self) -> &StructureRef
[src]
impl DerefMut for BufferPoolConfig
[src]
fn deref_mut(&mut self) -> &mut StructureRef
[src]
impl Eq for BufferPoolConfig
[src]
impl PartialEq<BufferPoolConfig> for BufferPoolConfig
[src]
fn eq(&self, other: &BufferPoolConfig) -> bool
[src]
fn ne(&self, other: &BufferPoolConfig) -> bool
[src]
impl StructuralEq for BufferPoolConfig
[src]
impl StructuralPartialEq for BufferPoolConfig
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,