pub struct SystemVolumeRequestPacket {
pub request_sinks: Option<bool>,
pub name: Option<String>,
pub enabled: Option<bool>,
pub muted: Option<bool>,
pub volume: Option<u64>,
}Expand description
This packet is a audio stream request. It is used to request both the list of streams and changes to those streams.
https://invent.kde.org/network/kdeconnect-meta/blob/master/protocol.md#kdeconnectsystemvolumerequest
Fields§
§request_sinks: Option<bool>Indicates this is a request for the stream list.
name: Option<String>The name of a stream. If the packet contains this field, it is a request to adjust a stream.
enabled: Option<bool>Indicates the stream should become the active default. Always true if present.
muted: Option<bool>The requested mute state.
volume: Option<u64>The requested volume. The maximum value is provided by the maxVolume field of the stream.
Trait Implementations§
Source§impl Clone for SystemVolumeRequestPacket
impl Clone for SystemVolumeRequestPacket
Source§fn clone(&self) -> SystemVolumeRequestPacket
fn clone(&self) -> SystemVolumeRequestPacket
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 SystemVolumeRequestPacket
impl Debug for SystemVolumeRequestPacket
Source§impl<'de> Deserialize<'de> for SystemVolumeRequestPacket
impl<'de> Deserialize<'de> for SystemVolumeRequestPacket
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 SystemVolumeRequestPacket
impl RefUnwindSafe for SystemVolumeRequestPacket
impl Send for SystemVolumeRequestPacket
impl Sync for SystemVolumeRequestPacket
impl Unpin for SystemVolumeRequestPacket
impl UnsafeUnpin for SystemVolumeRequestPacket
impl UnwindSafe for SystemVolumeRequestPacket
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