Expand description
Structure that describes possible cast device volume options.
Fields§
§level: Option<f32>
Volume level.
muted: Option<bool>
Mute/unmute state.
Trait Implementations§
source§impl From<(f32, bool)> for Volume
impl From<(f32, bool)> for Volume
This From<(f32, bool)>
implementation is useful when both volume level and mute/unmute state are
needed.
source§impl From<bool> for Volume
impl From<bool> for Volume
This From<bool>
implementation is useful when only mute/unmute state is needed.
source§impl From<f32> for Volume
impl From<f32> for Volume
This From<f32>
implementation is useful when only volume level is needed.