Struct rust_cast::channels::receiver::Volume[][src]

pub struct Volume {
    pub level: Option<f32>,
    pub muted: Option<bool>,
}

Structure that describes possible cast device volume options.

Fields

Volume level.

Mute/unmute state.

Trait Implementations

impl Debug for Volume
[src]

Formats the value using the given formatter. Read more

impl Into<Volume> for f32
[src]

This Into<Volume> implementation is useful when only volume level is needed.

Performs the conversion.

impl Into<Volume> for bool
[src]

This Into<Volume> implementation is useful when only mute/unmute state is needed.

Performs the conversion.

impl Into<Volume> for (f32, bool)
[src]

This Into<Volume> implementation is useful when both volume level and mute/unmute state are needed.

Performs the conversion.

Auto Trait Implementations

impl Send for Volume

impl Sync for Volume