Struct pipewire::PropertiesRef [−][src]
pub struct PropertiesRef<'a> { /* fields omitted */ }
Implementations
Create a PropertiesRef
struct from an existing raw pw_properties
pointer.
Safety
- The provided pointer must point to a valid, well-aligned
pw_properties
struct. - The generated
PropertiesRef
will not take ownership of the pointer so thepw_properties
struct has to stays alive during all its lifetime.
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.
Trait Implementations
Obtain the pointer to the raw spa_dict
struct.
An iterator over all raw key-value pairs.
The iterator element type is (&CStr, &CStr)
. Read more
An iterator over all key-value pairs that are valid utf-8.
The iterator element type is (&str, &str)
. Read more
An iterator over all keys that are valid utf-8. The iterator element type is &str. Read more
An iterator over all values that are valid utf-8. The iterator element type is &str. Read more
Returns the number of key-value-pairs in the dict. This is the number of all pairs, not only pairs that are valid-utf8. Read more
Get the value associated with the provided key. Read more
Get the value associated with the provided key and convert it to a given type. Read more