Struct libpulse_binding::context::introspect::SourceInfo[][src]

pub struct SourceInfo<'a> {
    pub name: Option<Cow<'a, str>>,
    pub index: u32,
    pub description: Option<Cow<'a, str>>,
    pub sample_spec: Spec,
    pub channel_map: Map,
    pub owner_module: Option<u32>,
    pub volume: ChannelVolumes,
    pub mute: bool,
    pub monitor_of_sink: Option<u32>,
    pub monitor_of_sink_name: Option<Cow<'a, str>>,
    pub latency: MicroSeconds,
    pub driver: Option<Cow<'a, str>>,
    pub flags: SourceFlagSet,
    pub proplist: Proplist,
    pub configured_latency: MicroSeconds,
    pub base_volume: Volume,
    pub state: SourceState,
    pub n_volume_steps: u32,
    pub card: Option<u32>,
    pub ports: Vec<SourcePortInfo<'a>>,
    pub active_port: Option<Box<SourcePortInfo<'a>>>,
    pub formats: Vec<Info>,
}

Stores information about sources.

Please note that this structure can be extended as part of evolutionary API updates at any time in any new release.

Fields

Name of the source.

Index of the source.

Description of this source.

Sample spec of this source.

Channel map.

Owning module index, or None.

Volume of the source.

Mute switch of the sink.

If this is a monitor source, the index of the owning sink, otherwise None.

Name of the owning sink, or None.

Length of filled record buffer of this source.

Driver name.

Flags.

Property list.

The latency this device has been configured to.

Some kind of "base" volume that refers to unamplified/unattenuated volume in the context of the input device.

State.

Number of volume steps for sources which do not support arbitrary volumes.

Card index, or None.

Set of available ports.

Pointer to active port in the set, or None.

Set of formats supported by the sink.

Trait Implementations

impl<'a> Debug for SourceInfo<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> !Send for SourceInfo<'a>

impl<'a> !Sync for SourceInfo<'a>