pub fn sampling_frequency(&self) -> avdtp::Result<u32> {
        let hz = match SbcSamplingFrequency::from_bits_truncate(self.0.sampling_frequency()) {
            SbcSamplingFrequency::FREQ16000HZ => 16000,
            SbcSamplingFrequency::FREQ32000HZ => 32000,
            SbcSamplingFrequency::FREQ48000HZ => 48000,
            SbcSamplingFrequency::FREQ44100HZ => 44100,
            _ => return Err(avdtp::Error::OutOfRange),
        };
        Ok(hz)
    }
/// Returns the sampling frequeency selected, in hz.
/// Returns Error::OutOfRange if multiple frequencies are selected.
Returns the sampling frequeency selected, in hz.
Returns Error::OutOfRange if multiple frequencies are selected.
Returns the sampling frequeency selected in hz . Returns Error :: OutOfRange if multiple frequencies are selected .
pub fn sampling_frequency(&self) -> avdtp::Result<u32> {
        let hz = match SbcSamplingFrequency::from_bits_truncate(self.0.sampling_frequency()) {
            SbcSamplingFrequency::FREQ16000HZ => 16000,
            SbcSamplingFrequency::FREQ32000HZ => 32000,
            SbcSamplingFrequency::FREQ48000HZ => 48000,
            SbcSamplingFrequency::FREQ44100HZ => 44100,
            _ => return Err(avdtp::Error::OutOfRange),
        };
        Ok(hz)
    }
pub fn sampling_frequency ( & self ) -> avdtp :: Result < u32 > { let hz = match SbcSamplingFrequency :: from_bits_truncate ( self . 0 . sampling_frequency ( ) ) { SbcSamplingFrequency :: FREQ16000HZ => 16000 , SbcSamplingFrequency :: FREQ32000HZ => 32000 , SbcSamplingFrequency :: FREQ48000HZ => 48000 , SbcSamplingFrequency :: FREQ44100HZ => 44100 , _ => return Err ( avdtp :: Error :: OutOfRange ) , } ; Ok ( hz ) }
Returns the sampling frequeency selected, in hz.
Returns the sampling frequeency selected in hz .
&self
&self