pub struct SystemVolumePacket {
pub sink_list: Option<Vec<SystemVolumeStream>>,
pub name: Option<String>,
pub enabled: Option<bool>,
pub muted: Option<bool>,
pub volume: Option<u64>,
}Expand description
This packet is a mixer stream state update.
https://invent.kde.org/network/kdeconnect-meta/blob/master/protocol.md#kdeconnectsystemvolume
Fields§
§sink_list: Option<Vec<SystemVolumeStream>>The list of audio streams.
name: Option<String>The stream name.
enabled: Option<bool>Whether the stream is enabled.
muted: Option<bool>Whether the stream is muted.
volume: Option<u64>The stream volume level.
Trait Implementations§
Source§impl Clone for SystemVolumePacket
impl Clone for SystemVolumePacket
Source§fn clone(&self) -> SystemVolumePacket
fn clone(&self) -> SystemVolumePacket
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 SystemVolumePacket
impl Debug for SystemVolumePacket
Source§impl<'de> Deserialize<'de> for SystemVolumePacket
impl<'de> Deserialize<'de> for SystemVolumePacket
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 SystemVolumePacket
impl RefUnwindSafe for SystemVolumePacket
impl Send for SystemVolumePacket
impl Sync for SystemVolumePacket
impl Unpin for SystemVolumePacket
impl UnsafeUnpin for SystemVolumePacket
impl UnwindSafe for SystemVolumePacket
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