Trait Rate

Source
pub trait Rate:
    'static
    + Send
    + Sync {
    const PERIOD: f64;
    const VALUE: f64;
    const COUNT: u64;
    const NANOS_PER_SAMPLE: Ratio<u64>;
}

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Rate for Rate44100

Source§

const PERIOD: f64 = 2.2675736961451248E-5f64

Source§

const VALUE: f64 = 44100f64

Source§

const COUNT: u64 = 44_100u64

Source§

const NANOS_PER_SAMPLE: Ratio<u64>

Source§

impl Rate for Rate48000

Source§

const PERIOD: f64 = 2.0833333333333333E-5f64

Source§

const VALUE: f64 = 48000f64

Source§

const COUNT: u64 = 48_000u64

Source§

const NANOS_PER_SAMPLE: Ratio<u64>