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 the pw_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

Formats the value using the given formatter. Read more

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

Returns true if the dict is empty, false if it is not.

Returns the bitflags that are set for the dict.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.