Trait pulsectl::controllers::AppControl[][src]

pub trait AppControl<T> {
    fn list_applications(&mut self) -> Result<Vec<T>, ControllerError>;
fn get_app_by_index(&mut self, index: u32) -> Result<T, ControllerError>;
fn increase_app_volume_by_percent(&mut self, index: u32, delta: f64);
fn decrease_app_volume_by_percent(&mut self, index: u32, delta: f64);
fn move_app_by_index(
        &mut self,
        stream_index: u32,
        device_index: u32
    ) -> Result<bool, ControllerError>;
fn move_app_by_name(
        &mut self,
        stream_index: u32,
        device_name: &str
    ) -> Result<bool, ControllerError>;
fn set_app_mute(
        &mut self,
        index: u32,
        mute: bool
    ) -> Result<bool, ControllerError>; }

Required methods

Implementors