pub struct DevicePortInfo {
pub name: Option<String>,
pub description: Option<String>,
pub priority: u32,
pub available: PortAvailable,
}
Expand description
These structs are direct representations of what libpulse_binding gives created to be copyable / cloneable for use in and out of callbacks This is a wrapper around SinkPortInfo and SourcePortInfo as they have the same members
Fields§
§name: Option<String>
Name of the sink.
description: Option<String>
Description of this sink.
priority: u32
The higher this value is, the more useful this port is as a default.
available: PortAvailable
A flag indicating availability status of this port.
Trait Implementations§
Source§impl Clone for DevicePortInfo
impl Clone for DevicePortInfo
Source§fn clone(&self) -> DevicePortInfo
fn clone(&self) -> DevicePortInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> From<&'a Box<SinkPortInfo<'a>>> for DevicePortInfo
impl<'a> From<&'a Box<SinkPortInfo<'a>>> for DevicePortInfo
Source§fn from(item: &'a Box<SinkPortInfo<'a>>) -> Self
fn from(item: &'a Box<SinkPortInfo<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a Box<SourcePortInfo<'a>>> for DevicePortInfo
impl<'a> From<&'a Box<SourcePortInfo<'a>>> for DevicePortInfo
Source§fn from(item: &'a Box<SourcePortInfo<'a>>) -> Self
fn from(item: &'a Box<SourcePortInfo<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a SinkPortInfo<'a>> for DevicePortInfo
impl<'a> From<&'a SinkPortInfo<'a>> for DevicePortInfo
Source§fn from(item: &'a SinkPortInfo<'a>) -> Self
fn from(item: &'a SinkPortInfo<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a SourcePortInfo<'a>> for DevicePortInfo
impl<'a> From<&'a SourcePortInfo<'a>> for DevicePortInfo
Source§fn from(item: &'a SourcePortInfo<'a>) -> Self
fn from(item: &'a SourcePortInfo<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DevicePortInfo
impl RefUnwindSafe for DevicePortInfo
impl Send for DevicePortInfo
impl Sync for DevicePortInfo
impl Unpin for DevicePortInfo
impl UnwindSafe for DevicePortInfo
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