pub struct SystemVolumeStream {
pub name: String,
pub description: String,
pub enabled: Option<bool>,
pub muted: bool,
pub max_volume: Option<u64>,
pub volume: u64,
}Expand description
An audio stream object.
Fields§
§name: StringThe stream name.
description: StringThe stream display name.
enabled: Option<bool>Whether the stream is enabled.
muted: boolWhether the stream is muted.
max_volume: Option<u64>The stream max volume level.
volume: u64The stream volume level.
Trait Implementations§
Source§impl Clone for SystemVolumeStream
impl Clone for SystemVolumeStream
Source§fn clone(&self) -> SystemVolumeStream
fn clone(&self) -> SystemVolumeStream
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemVolumeStream
impl Debug for SystemVolumeStream
Source§impl<'de> Deserialize<'de> for SystemVolumeStream
impl<'de> Deserialize<'de> for SystemVolumeStream
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SystemVolumeStream
impl RefUnwindSafe for SystemVolumeStream
impl Send for SystemVolumeStream
impl Sync for SystemVolumeStream
impl Unpin for SystemVolumeStream
impl UnsafeUnpin for SystemVolumeStream
impl UnwindSafe for SystemVolumeStream
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