Struct pipewire_wrapper::core_api::device::info::DeviceInfoRef
source · #[repr(transparent)]pub struct DeviceInfoRef { /* private fields */ }
Implementations§
source§impl DeviceInfoRef
impl DeviceInfoRef
pub fn id(&self) -> u32
pub fn change_mask(&self) -> ChangeMask
pub fn props(&self) -> &DictRef
pub fn params(&self) -> &[ParamInfoRef]
Trait Implementations§
source§impl Debug for DeviceInfoRef
impl Debug for DeviceInfoRef
source§impl From<&DeviceInfoRef> for DeviceInfo
impl From<&DeviceInfoRef> for DeviceInfo
source§fn from(value: &DeviceInfoRef) -> Self
fn from(value: &DeviceInfoRef) -> Self
Converts to this type from the input type.
source§impl From<DeviceInfoRef> for pw_device_info
impl From<DeviceInfoRef> for pw_device_info
source§fn from(value: DeviceInfoRef) -> Self
fn from(value: DeviceInfoRef) -> Self
Converts to this type from the input type.
source§impl From<pw_device_info> for DeviceInfoRef
impl From<pw_device_info> for DeviceInfoRef
source§fn from(value: pw_device_info) -> Self
fn from(value: pw_device_info) -> Self
Converts to this type from the input type.
source§impl RawWrapper for DeviceInfoRef
impl RawWrapper for DeviceInfoRef
§type CType = pw_device_info
type CType = pw_device_info
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 DeviceInfoRef
impl !Send for DeviceInfoRef
impl !Sync for DeviceInfoRef
impl Unpin for DeviceInfoRef
impl UnwindSafe for DeviceInfoRef
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