[−][src]Struct pulsectl::controllers::SinkController
Fields
handler: Handler
Implementations
impl SinkController
[src]
pub fn create() -> Result<Self, ControllerError>
[src]
pub fn get_server_info(&mut self) -> Result<ServerInfo, ControllerError>
[src]
Trait Implementations
impl AppControl<ApplicationInfo> for SinkController
[src]
pub fn list_applications(
&mut self
) -> Result<Vec<ApplicationInfo>, ControllerError>
[src]
&mut self
) -> Result<Vec<ApplicationInfo>, ControllerError>
pub fn get_app_by_index(
&mut self,
index: u32
) -> Result<ApplicationInfo, ControllerError>
[src]
&mut self,
index: u32
) -> Result<ApplicationInfo, ControllerError>
pub fn increase_app_volume_by_percent(&mut self, index: u32, delta: f64)
[src]
pub fn decrease_app_volume_by_percent(&mut self, index: u32, delta: f64)
[src]
pub fn move_app_by_index(
&mut self,
stream_index: u32,
device_index: u32
) -> Result<bool, ControllerError>
[src]
&mut self,
stream_index: u32,
device_index: u32
) -> Result<bool, ControllerError>
pub fn move_app_by_name(
&mut self,
stream_index: u32,
device_name: &str
) -> Result<bool, ControllerError>
[src]
&mut self,
stream_index: u32,
device_name: &str
) -> Result<bool, ControllerError>
pub fn set_app_mute(
&mut self,
index: u32,
mute: bool
) -> Result<bool, ControllerError>
[src]
&mut self,
index: u32,
mute: bool
) -> Result<bool, ControllerError>
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 set_device_mute_by_index(&mut self, index: u32, mute: bool)
[src]
pub fn set_device_mute_by_name(&mut self, name: &str, mute: bool)
[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]
Auto Trait Implementations
impl !RefUnwindSafe for SinkController
[src]
impl !Send for SinkController
[src]
impl !Sync for SinkController
[src]
impl Unpin for SinkController
[src]
impl !UnwindSafe for SinkController
[src]
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, 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>,