pub struct Sink {
pub name: String,
pub volume_percent: u32,
pub muted: bool,
}Expand description
The default sink: where sound goes unless an app picks another.
Fields§
§name: StringIts name on the server, such as
alsa_output.pci-0000_03_00.6.analog-stereo.
volume_percent: u32The average of its channels’ volumes, rounded as pactl rounds
them. 100 is full volume, and other apps can set more.
muted: boolWhether it is muted.
Trait Implementations§
impl Eq for Sink
impl StructuralPartialEq for Sink
Auto Trait Implementations§
impl Forget for Sink
impl Freeze for Sink
impl Move for Sink
impl RefUnwindSafe for Sink
impl Send for Sink
impl Sync for Sink
impl Unpin for Sink
impl UnsafeUnpin for Sink
impl UnwindSafe for Sink
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