Struct pipewire::properties::PropertiesRef
source · pub struct PropertiesRef(/* private fields */);
Implementations§
source§impl PropertiesRef
impl PropertiesRef
pub fn as_raw(&self) -> &pw_properties
sourcepub fn as_raw_ptr(&self) -> *mut pw_properties
pub fn as_raw_ptr(&self) -> *mut pw_properties
Obtain a pointer to the underlying pw_properties
struct.
The pointer is only valid for the lifetime of the PropertiesRef
struct the pointer was obtained from,
and must not be dereferenced after it is dropped.
Ownership of the pw_properties
struct is not transferred to the caller and must not be manually freed.
pub fn dict(&self) -> &DictRef
pub fn to_owned(&self) -> Properties
pub fn get(&self, key: &str) -> Option<&str>
pub fn get_cstr(&self, key: &CStr) -> Option<&str>
pub fn insert<K, V>(&mut self, key: K, value: V)
pub fn remove<T>(&mut self, key: T)
pub fn clear(&mut self)
Trait Implementations§
source§impl AsRef<DictRef> for PropertiesRef
impl AsRef<DictRef> for PropertiesRef
source§impl AsRef<PropertiesRef> for Properties
impl AsRef<PropertiesRef> for Properties
source§fn as_ref(&self) -> &PropertiesRef
fn as_ref(&self) -> &PropertiesRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Debug for PropertiesRef
impl Debug for PropertiesRef
source§impl<K, V> Extend<(K, V)> for PropertiesRef
impl<K, V> Extend<(K, V)> for PropertiesRef
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
Auto Trait Implementations§
impl RefUnwindSafe for PropertiesRef
impl !Send for PropertiesRef
impl !Sync for PropertiesRef
impl Unpin for PropertiesRef
impl UnwindSafe for PropertiesRef
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