Struct libpulse_binding::volume::VolumeDB[][src]

pub struct VolumeDB(pub f64);

Software volume expressed in decibels (dBs)

Trait Implementations

impl Debug for VolumeDB
[src]

Formats the value using the given formatter. Read more

impl Copy for VolumeDB
[src]

impl Clone for VolumeDB
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for VolumeDB
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for VolumeDB
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Default for VolumeDB
[src]

Returns the "default value" for a type. Read more

impl From<VolumeDB> for Volume
[src]

Convert a decibel value to a volume (amplitude, not power). This is only valid for software volumes!

Performs the conversion.

impl From<Volume> for VolumeDB
[src]

Convert a volume to a decibel value (amplitude, not power). This is only valid for software volumes!

Performs the conversion.

impl From<VolumeLinear> for VolumeDB
[src]

Convert a linear factor to a decibel value (amplitude, not power). 0.0 and less is muted while 1.0 is VOLUME_NORM. This is only valid for software volumes!

Performs the conversion.

impl From<VolumeDB> for VolumeLinear
[src]

Convert a decibel value (amplitude, not power) to a linear factor. This is only valid for software volumes!

Performs the conversion.

Auto Trait Implementations

impl Send for VolumeDB

impl Sync for VolumeDB