pub struct ElementPropertiesMapItem(/* private fields */);
Expand description
Wrapper around gst::Structure
for element-properties-map
map item.
§Examples
ElementProperties::builder_map()
.item(
ElementPropertiesMapItem::builder("vp8enc")
.field("max-quantizer", 17)
.field("buffer-size", 20000)
.field("threads", 16)
.build(),
)
.build();
Implementations§
source§impl ElementPropertiesMapItem
impl ElementPropertiesMapItem
pub fn builder(factory_name: &str) -> ElementPropertiesMapItemBuilder
pub fn into_inner(self) -> Structure
Methods from Deref<Target = StructureRef>§
pub fn as_ptr(&self) -> *const GstStructure
pub fn as_mut_ptr(&self) -> *mut GstStructure
pub fn get<'a, T>(
&'a self,
name: impl IntoGStr
) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn get_optional<'a, T>(
&'a self,
name: impl IntoGStr
) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn value( &self, name: impl IntoGStr ) -> Result<&SendValue, GetError<Infallible>>
pub fn get_by_quark<'a, T>(
&'a self,
name: Quark
) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn get_optional_by_quark<'a, T>(
&'a self,
name: Quark
) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn value_by_quark( &self, name: Quark ) -> Result<&SendValue, GetError<Infallible>>
pub fn set(&mut self, name: impl IntoGStr, value: impl Into<Value> + Send)
pub fn set_value(&mut self, name: impl IntoGStr, value: SendValue)
pub fn set_by_quark(&mut self, name: Quark, value: impl Into<Value> + Send)
pub fn set_value_by_quark(&mut self, name: Quark, value: SendValue)
pub fn name<'a>(&self) -> &'a GStr
pub fn name_quark(&self) -> Quark
pub fn set_name(&mut self, name: impl IntoGStr)
pub fn has_name(&self, name: &str) -> bool
pub fn has_field(&self, field: impl IntoGStr) -> bool
pub fn has_field_with_type(&self, field: impl IntoGStr, 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: impl IntoGStr)
pub fn remove_fields(&mut self, fields: impl IntoIterator<Item = impl IntoGStr>)
pub fn remove_all_fields(&mut self)
pub fn fields(&self) -> FieldIterator<'_>
pub fn iter(&self) -> Iter<'_>
pub fn nth_field_name<'a>(&self, idx: u32) -> Option<&'a GStr>
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: impl IntoGStr) -> bool
pub fn fixate_field_bool(&mut self, name: impl IntoGStr, target: bool) -> bool
pub fn fixate_field_str( &mut self, name: impl IntoGStr, target: impl IntoGStr ) -> bool
pub fn fixate_field_nearest_double( &mut self, name: impl IntoGStr, target: f64 ) -> bool
pub fn fixate_field_nearest_fraction( &mut self, name: impl IntoGStr, target: impl Into<Fraction> ) -> bool
pub fn fixate_field_nearest_int( &mut self, name: impl IntoGStr, target: i32 ) -> bool
pub fn serialize(&self, flags: SerializeFlags) -> GString
pub fn serialize_strict( &self, flags: SerializeFlags ) -> Result<GString, BoolError>
pub fn foreach<F>(&self, func: F) -> bool
pub fn map_in_place<F>(&mut self, func: F) -> bool
pub fn filter_map_in_place<F>(&mut self, func: F)
Trait Implementations§
source§impl Clone for ElementPropertiesMapItem
impl Clone for ElementPropertiesMapItem
source§fn clone(&self) -> ElementPropertiesMapItem
fn clone(&self) -> ElementPropertiesMapItem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ElementPropertiesMapItem
impl Debug for ElementPropertiesMapItem
source§impl Deref for ElementPropertiesMapItem
impl Deref for ElementPropertiesMapItem
source§impl DerefMut for ElementPropertiesMapItem
impl DerefMut for ElementPropertiesMapItem
source§impl From<ElementPropertiesMapItem> for Structure
impl From<ElementPropertiesMapItem> for Structure
source§fn from(e: ElementPropertiesMapItem) -> Self
fn from(e: ElementPropertiesMapItem) -> Self
Converts to this type from the input type.
source§impl PartialEq for ElementPropertiesMapItem
impl PartialEq for ElementPropertiesMapItem
source§fn eq(&self, other: &ElementPropertiesMapItem) -> bool
fn eq(&self, other: &ElementPropertiesMapItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ElementPropertiesMapItem
impl StructuralPartialEq for ElementPropertiesMapItem
Auto Trait Implementations§
impl Freeze for ElementPropertiesMapItem
impl RefUnwindSafe for ElementPropertiesMapItem
impl Send for ElementPropertiesMapItem
impl Sync for ElementPropertiesMapItem
impl Unpin for ElementPropertiesMapItem
impl UnwindSafe for ElementPropertiesMapItem
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