Struct pipewire_wrapper::core_api::properties::PropertiesRef
source · #[repr(transparent)]pub struct PropertiesRef { /* private fields */ }
Implementations§
source§impl PropertiesRef
impl PropertiesRef
pub fn flags(&self) -> Flags
pub fn n_items(&self) -> u32
pub fn items(&self) -> &[DictItemRef]
pub fn dict(&self) -> &DictRef
pub fn copy(&self) -> NonNull<PropertiesRef>
pub fn update_keys(&self, source: &DictRef, keys_to_update: &[&CStr]) -> i32
pub fn update_ignore(&self, source: &DictRef, ignore_keys: &[&CStr]) -> i32
pub fn update(&self, source: &DictRef) -> i32
pub fn update_string(&self, string: &CStr) -> i32
pub fn add(&self, other: &DictRef) -> i32
pub fn add_keys(&self, other: &DictRef, keys_to_add: &[&CStr]) -> i32
pub fn clear(&self)
pub fn set(&self, key: &CStr, value: &CStr) -> i32
pub fn remove(&self, key: &CStr) -> i32
pub fn get(&self, key: &CStr) -> Option<&CStr>
pub fn fetch_u32(&self, key: &CStr) -> Result<u32>
pub fn fetch_i32(&self, key: &CStr) -> Result<i32>
pub fn fetch_u64(&self, key: &CStr, value: &u64) -> Result<u64>
pub fn fetch_i64(&self, key: &CStr) -> Result<i64>
pub fn fetch_bool(&self, key: &CStr) -> Result<bool>
pub fn get_u32(&self, key: &CStr, default: u32) -> u32
pub fn get_i32(&self, key: &CStr, default: i32) -> i32
pub fn get_u64(&self, key: &CStr, default: u64) -> u64
pub fn get_i64(&self, key: &CStr, default: i64) -> i64
pub fn get_bool(&self, key: &CStr, default: bool) -> bool
pub fn serialize(&self, file: &FILE) -> i32
pub fn iter(&self) -> PropertiesIterator<'_> ⓘ
Trait Implementations§
source§impl AsMut<PropertiesRef> for Properties
impl AsMut<PropertiesRef> for Properties
source§fn as_mut(&mut self) -> &mut <Self as Wrapper>::RawWrapperType
fn as_mut(&mut self) -> &mut <Self as Wrapper>::RawWrapperType
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<PropertiesRef> for Properties
impl AsRef<PropertiesRef> for Properties
source§fn as_ref(&self) -> &<Self as Wrapper>::RawWrapperType
fn as_ref(&self) -> &<Self as Wrapper>::RawWrapperType
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Debug for PropertiesRef
impl Debug for PropertiesRef
source§impl From<PropertiesRef> for pw_properties
impl From<PropertiesRef> for pw_properties
source§fn from(value: PropertiesRef) -> Self
fn from(value: PropertiesRef) -> Self
Converts to this type from the input type.
source§impl From<pw_properties> for PropertiesRef
impl From<pw_properties> for PropertiesRef
source§fn from(value: pw_properties) -> Self
fn from(value: pw_properties) -> Self
Converts to this type from the input type.
source§impl RawWrapper for PropertiesRef
impl RawWrapper for PropertiesRef
§type CType = pw_properties
type CType = pw_properties
External type
source§fn as_raw_ptr(&self) -> *mut Self::CType
fn as_raw_ptr(&self) -> *mut Self::CType
Raw ptr to the external type
source§fn from_raw(raw: Self::CType) -> Self
fn from_raw(raw: Self::CType) -> Self
Creates wrapper from the external value, can be use when external type has no raw pointers.
source§unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
Cast external pointer to the borrowed mutable wrapper.
Panic when pointer is null.
Lifetime is not reliable and should be guaranteed explicitly. 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