pub struct AudioStream {
pub index: u32,
pub app_name: String,
pub title: String,
pub icon_name: String,
pub sink: String,
pub volume_percent: u32,
pub volumes: Vec<u32>,
pub channels: Vec<AudioChannel>,
pub muted: bool,
}Expand description
An app playing sound: one of the server’s sink inputs.
Fields§
§index: u32The server’s number for it, which the setters take.
app_name: StringThe app’s name, such as Firefox.
title: StringWhat it plays, such as a tab’s title.
icon_name: StringThe app’s icon name, or "".
sink: StringThe name of the sink it plays to.
volume_percent: u32The average of its channels’ volumes, as Sink’s.
volumes: Vec<u32>Each channel’s volume, as AudioNode::volumes.
channels: Vec<AudioChannel>Where each channel plays, as AudioNode::channels.
muted: boolWhether it is muted.
Trait Implementations§
Source§impl Clone for AudioStream
impl Clone for AudioStream
Source§impl Debug for AudioStream
impl Debug for AudioStream
impl Eq for AudioStream
Source§impl PartialEq for AudioStream
impl PartialEq for AudioStream
impl StructuralPartialEq for AudioStream
Auto Trait Implementations§
impl Forget for AudioStream
impl Freeze for AudioStream
impl Move for AudioStream
impl RefUnwindSafe for AudioStream
impl Send for AudioStream
impl Sync for AudioStream
impl Unpin for AudioStream
impl UnsafeUnpin for AudioStream
impl UnwindSafe for AudioStream
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