[][src]Struct pulsectl::controllers::types::DevicePortInfo

pub struct DevicePortInfo {
    pub name: Option<String>,
    pub description: Option<String>,
    pub priority: u32,
    pub available: PortAvailable,
}

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

impl Clone for DevicePortInfo[src]

impl<'a> From<&'a Box<SinkPortInfo<'a>, Global>> for DevicePortInfo[src]

impl<'a> From<&'a Box<SourcePortInfo<'a>, Global>> for DevicePortInfo[src]

impl<'a> From<&'a SinkPortInfo<'a>> for DevicePortInfo[src]

impl<'a> From<&'a SourcePortInfo<'a>> for DevicePortInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.