ApplicationInfo

Struct ApplicationInfo 

Source
pub struct ApplicationInfo {
Show 18 fields pub index: u32, pub name: Option<String>, pub owner_module: Option<u32>, pub client: Option<u32>, pub connection_id: u32, pub sample_spec: Spec, pub channel_map: Map, pub volume: ChannelVolumes, pub buffer_usec: MicroSeconds, pub connection_usec: MicroSeconds, pub resample_method: Option<String>, pub driver: Option<String>, pub mute: bool, pub proplist: Proplist, pub corked: bool, pub has_volume: bool, pub volume_writable: bool, pub format: Info,
}

Fields§

§index: u32

Index of the sink input.

§name: Option<String>

Name of the sink input.

§owner_module: Option<u32>

Index of the module this sink input belongs to, or None when it does not belong to any module.

§client: Option<u32>

Index of the client this sink input belongs to, or invalid when it does not belong to any client.

§connection_id: u32

Index of the connected sink/source.

§sample_spec: Spec

The sample specification of the sink input.

§channel_map: Map

Channel map.

§volume: ChannelVolumes

The volume of this sink input.

§buffer_usec: MicroSeconds

Latency due to buffering in sink input, see def::TimingInfo for details.

§connection_usec: MicroSeconds

Latency of the sink device, see def::TimingInfo for details.

§resample_method: Option<String>

The resampling method used by this sink input.

§driver: Option<String>

Driver name.

§mute: bool

Stream muted.

§proplist: Proplist

Property list.

§corked: bool

Stream corked.

§has_volume: bool

Stream has volume. If not set, then the meaning of this struct’s volume member is unspecified.

§volume_writable: bool

The volume can be set. If not set, the volume can still change even though clients can’t control the volume.

§format: Info

Stream format information.

Trait Implementations§

Source§

impl AppControl<ApplicationInfo> for SinkController

Source§

fn list_applications(&mut self) -> Result<Vec<ApplicationInfo>, ControllerError>

Source§

fn get_app_by_index( &mut self, index: u32, ) -> Result<ApplicationInfo, ControllerError>

Source§

fn increase_app_volume_by_percent(&mut self, index: u32, delta: f64)

Source§

fn decrease_app_volume_by_percent(&mut self, index: u32, delta: f64)

Source§

fn move_app_by_index( &mut self, stream_index: u32, device_index: u32, ) -> Result<bool, ControllerError>

Source§

fn move_app_by_name( &mut self, stream_index: u32, device_name: &str, ) -> Result<bool, ControllerError>

Source§

fn set_app_mute( &mut self, index: u32, mute: bool, ) -> Result<bool, ControllerError>

Source§

impl AppControl<ApplicationInfo> for SourceController

Source§

fn list_applications(&mut self) -> Result<Vec<ApplicationInfo>, ControllerError>

Source§

fn get_app_by_index( &mut self, index: u32, ) -> Result<ApplicationInfo, ControllerError>

Source§

fn increase_app_volume_by_percent(&mut self, index: u32, delta: f64)

Source§

fn decrease_app_volume_by_percent(&mut self, index: u32, delta: f64)

Source§

fn move_app_by_index( &mut self, stream_index: u32, device_index: u32, ) -> Result<bool, ControllerError>

Source§

fn move_app_by_name( &mut self, stream_index: u32, device_name: &str, ) -> Result<bool, ControllerError>

Source§

fn set_app_mute( &mut self, index: u32, mute: bool, ) -> Result<bool, ControllerError>

Source§

impl Clone for ApplicationInfo

Source§

fn clone(&self) -> ApplicationInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> From<&'a SinkInputInfo<'a>> for ApplicationInfo

Source§

fn from(item: &'a SinkInputInfo<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a SourceOutputInfo<'a>> for ApplicationInfo

Source§

fn from(item: &'a SourceOutputInfo<'a>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.