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.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Info<'a>
impl<'a> RefUnwindSafe for Info<'a>
impl<'a> Send for Info<'a>
impl<'a> Sync for Info<'a>
impl<'a> Unpin for Info<'a>
impl<'a> UnwindSafe for Info<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more