[−][src]Struct pulsectl::controllers::types::DeviceInfo
Fields
index: u32Index of the sink.
name: Option<String>Name of the sink.
description: Option<String>Description of this sink.
sample_spec: SpecSample spec of this sink.
channel_map: MapChannel map.
owner_module: Option<u32>Index of the owning module of this sink, or None if is invalid.
volume: ChannelVolumesVolume of the sink.
mute: boolMute switch of the sink.
monitor: Option<u32>Index of the monitor source connected to this sink.
monitor_name: Option<String>The name of the monitor source.
latency: MicroSecondsLength of queued audio in the output buffer.
driver: Option<String>Driver name.
flags: SinkFlagSetFlags.
proplist: ProplistProperty list.
configured_latency: MicroSecondsThe latency this device has been configured to.
base_volume: VolumeSome kind of “base” volume that refers to unamplified/unattenuated volume in the context of the output device.
state: DevStateState.
n_volume_steps: u32Number of volume steps for sinks which do not support arbitrary volumes.
card: Option<u32>Card index, or None if invalid.
ports: Vec<DevicePortInfo>Set of available ports.
active_port: Option<DevicePortInfo>formats: Vec<Info>Set of formats supported by the sink.
Trait Implementations
impl Clone for DeviceInfo[src]
pub fn clone(&self) -> DeviceInfo[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl DeviceControl<DeviceInfo> for SinkController[src]
pub fn get_default_device(&mut self) -> Result<DeviceInfo, ControllerError>[src]
pub fn set_default_device(
&mut self,
name: &str
) -> Result<bool, ControllerError>[src]
&mut self,
name: &str
) -> Result<bool, ControllerError>
pub fn list_devices(&mut self) -> Result<Vec<DeviceInfo>, ControllerError>[src]
pub fn get_device_by_index(
&mut self,
index: u32
) -> Result<DeviceInfo, ControllerError>[src]
&mut self,
index: u32
) -> Result<DeviceInfo, ControllerError>
pub fn get_device_by_name(
&mut self,
name: &str
) -> Result<DeviceInfo, ControllerError>[src]
&mut self,
name: &str
) -> Result<DeviceInfo, ControllerError>
pub fn set_device_volume_by_index(
&mut self,
index: u32,
volume: &ChannelVolumes
)[src]
&mut self,
index: u32,
volume: &ChannelVolumes
)
pub fn set_device_volume_by_name(&mut self, name: &str, volume: &ChannelVolumes)[src]
pub fn increase_device_volume_by_percent(&mut self, index: u32, delta: f64)[src]
pub fn decrease_device_volume_by_percent(&mut self, index: u32, delta: f64)[src]
impl DeviceControl<DeviceInfo> for SourceController[src]
pub fn get_default_device(&mut self) -> Result<DeviceInfo, ControllerError>[src]
pub fn set_default_device(
&mut self,
name: &str
) -> Result<bool, ControllerError>[src]
&mut self,
name: &str
) -> Result<bool, ControllerError>
pub fn list_devices(&mut self) -> Result<Vec<DeviceInfo>, ControllerError>[src]
pub fn get_device_by_index(
&mut self,
index: u32
) -> Result<DeviceInfo, ControllerError>[src]
&mut self,
index: u32
) -> Result<DeviceInfo, ControllerError>
pub fn get_device_by_name(
&mut self,
name: &str
) -> Result<DeviceInfo, ControllerError>[src]
&mut self,
name: &str
) -> Result<DeviceInfo, ControllerError>
pub fn set_device_volume_by_index(
&mut self,
index: u32,
volume: &ChannelVolumes
)[src]
&mut self,
index: u32,
volume: &ChannelVolumes
)
pub fn set_device_volume_by_name(&mut self, name: &str, volume: &ChannelVolumes)[src]
pub fn increase_device_volume_by_percent(&mut self, index: u32, delta: f64)[src]
pub fn decrease_device_volume_by_percent(&mut self, index: u32, delta: f64)[src]
impl<'a> From<&'a SinkInfo<'a>> for DeviceInfo[src]
impl<'a> From<&'a SourceInfo<'a>> for DeviceInfo[src]
pub fn from(item: &'a SourceInfo<'a>) -> Self[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,