Struct wireplumber::pw::Properties
source · pub struct Properties { /* private fields */ }
Expand description
GLib type: Shared boxed type with reference counted clone semantics.
Implementations§
source§impl Properties
impl Properties
sourcepub fn as_ptr(&self) -> *mut WpProperties
pub fn as_ptr(&self) -> *mut WpProperties
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow<'a>(
ptr: *const *const WpProperties
) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const *const WpProperties ) -> &'a Self
Borrows the underlying C value.
source§impl Properties
impl Properties
pub fn new() -> Properties
pub fn new_string(str: &str) -> Properties
pub fn add(&self, props: &Properties) -> i32
pub fn add_keys(&self, props: &Properties, keys: &[&str]) -> i32
pub fn copy(&self) -> Option<Properties>
pub fn ensure_unique_owner(self) -> Option<Properties>
pub fn get(&self, key: &str) -> Option<GString>
pub fn count(&self) -> u32
Available on crate feature
v0_4_10
only.pub fn matches(&self, other: &Properties) -> bool
pub fn set(&self, key: &str, value: Option<&str>) -> i32
pub fn sort(&self)
pub fn update(&self, props: &Properties) -> i32
pub fn update_keys(&self, props: &Properties, keys: &[&str]) -> i32
pub fn iterator_item_get_key(item: &Value) -> Option<GString>
pub fn iterator_item_get_value(item: &Value) -> Option<GString>
source§impl Properties
impl Properties
pub fn new_clone(props: &Self) -> Properties
pub unsafe fn new_copy(props: &pw_properties) -> Properties
pub unsafe fn new_copy_dict(dict: &spa_dict) -> Properties
pub unsafe fn new_wrap(props: *const pw_properties) -> Properties
pub unsafe fn new_wrap_mut(props: *mut pw_properties) -> Properties
pub unsafe fn new_wrap_dict(dict: *const spa_dict) -> Properties
pub unsafe fn add_from_dict(&self, dict: &spa_dict) -> usize
pub fn peek_dict(&self) -> &spa_dict
pub fn to_pw_properties(&self) -> NonNull<pw_properties>
pub fn unref_and_take_pw_properties(self) -> NonNull<pw_properties>
pub unsafe fn update_from_dict(&self, dict: &spa_dict) -> usize
pub fn remove(&self, key: &str) -> bool
pub fn insert<V: ToPipewirePropertyString>(&self, key: &str, value: V)
pub fn iter( &self ) -> Map<ValueIterator<PropertiesItem>, fn(_: PropertiesItem) -> (String, String)>
pub fn items(&self) -> IntoValueIterator<PropertiesItem>
pub fn keys(&self) -> impl Iterator<Item = String>
pub fn values(&self) -> impl Iterator<Item = String>
Trait Implementations§
source§impl Clone for Properties
impl Clone for Properties
source§impl Debug for Properties
impl Debug for Properties
source§impl Default for Properties
impl Default for Properties
source§impl<K: AsRef<str>, V: ToPipewirePropertyString> Extend<(K, V)> for Properties
impl<K: AsRef<str>, V: ToPipewirePropertyString> Extend<(K, V)> for Properties
source§fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl From<Properties> for Value
impl From<Properties> for Value
source§fn from(s: Properties) -> Self
fn from(s: Properties) -> Self
Converts to this type from the input type.
source§impl FromIterator<(String, String)> for Properties
impl FromIterator<(String, String)> for Properties
source§impl HasParamSpec for Properties
impl HasParamSpec for Properties
type ParamSpec = ParamSpecBoxed
§type SetValue = Properties
type SetValue = Properties
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Properties>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for Properties
impl Hash for Properties
source§impl<'a> IntoIterator for &'a Properties
impl<'a> IntoIterator for &'a Properties
§type IntoIter = Map<ValueIterator<PropertiesItem>, fn(_: PropertiesItem) -> <&'a Properties as IntoIterator>::Item>
type IntoIter = Map<ValueIterator<PropertiesItem>, fn(_: PropertiesItem) -> <&'a Properties as IntoIterator>::Item>
Which kind of iterator are we turning this into?
source§impl IntoIterator for Properties
impl IntoIterator for Properties
§type IntoIter = Map<ValueIterator<PropertiesItem>, fn(_: PropertiesItem) -> <Properties as IntoIterator>::Item>
type IntoIter = Map<ValueIterator<PropertiesItem>, fn(_: PropertiesItem) -> <Properties as IntoIterator>::Item>
Which kind of iterator are we turning this into?
source§impl Ord for Properties
impl Ord for Properties
source§fn cmp(&self, other: &Properties) -> Ordering
fn cmp(&self, other: &Properties) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Properties
impl PartialEq for Properties
source§fn eq(&self, other: &Properties) -> bool
fn eq(&self, other: &Properties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Properties
impl PartialOrd for Properties
source§fn partial_cmp(&self, other: &Properties) -> Option<Ordering>
fn partial_cmp(&self, other: &Properties) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for Properties
impl StaticType for Properties
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Properties
impl StructuralPartialEq for Properties
Auto Trait Implementations§
impl Freeze for Properties
impl RefUnwindSafe for Properties
impl !Send for Properties
impl !Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
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
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.