pub struct Info<'a> {
    pub name: Option<Cow<'a, str>>,
    pub channel_map: Map,
    pub volume: ChannelVolumes,
    pub device: Option<Cow<'a, str>>,
    pub mute: bool,
}
Expand description

Stores information about one entry in the stream database that is maintained by module-stream-restore.

Fields

name: Option<Cow<'a, str>>

Identifier string of the stream. A string like “sink-input-by-role:” or similar followed by some arbitrary property value.

channel_map: Map

The channel map for the volume field, if applicable.

volume: ChannelVolumes

The volume of the stream when it was seen last, if applicable and saved.

device: Option<Cow<'a, str>>

The sink/source of the stream when it was last seen, if applicable and saved.

mute: bool

The boolean mute state of the stream when it was last seen, if applicable and saved.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.