pub struct PortInfo { /* private fields */ }
Implementations§
source§impl PortInfo
impl PortInfo
pub fn new(ptr: NonNull<pw_port_info>) -> Self
pub fn from_raw(raw: *mut pw_port_info) -> Self
pub fn into_raw(self) -> *mut pw_port_info
Methods from Deref<Target = PortInfoRef>§
pub fn as_raw(&self) -> &pw_port_info
pub fn as_raw_ptr(&self) -> *mut pw_port_info
pub fn id(&self) -> u32
pub fn direction(&self) -> Direction
pub fn change_mask(&self) -> PortChangeMask
pub fn props(&self) -> Option<&DictRef>
Trait Implementations§
source§impl AsRef<PortInfoRef> for PortInfo
impl AsRef<PortInfoRef> for PortInfo
source§fn as_ref(&self) -> &PortInfoRef
fn as_ref(&self) -> &PortInfoRef
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for PortInfo
impl !Send for PortInfo
impl !Sync for PortInfo
impl Unpin for PortInfo
impl UnwindSafe for PortInfo
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