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