pub enum SilkBandwidth {
NarrowBand,
MediumBand,
WideBand,
SuperWideBand,
}Expand description
SILK operating bandwidth.
Variants§
NarrowBand
Narrowband — 8 kHz sample rate.
MediumBand
Medium band — 12 kHz sample rate.
WideBand
Wideband — 16 kHz sample rate.
SuperWideBand
Super-wideband — 24 kHz sample rate.
Implementations§
Source§impl SilkBandwidth
impl SilkBandwidth
Sourcepub fn sample_rate(&self) -> u32
pub fn sample_rate(&self) -> u32
Returns the sample rate in Hz associated with this bandwidth.
Trait Implementations§
Source§impl Clone for SilkBandwidth
impl Clone for SilkBandwidth
Source§fn clone(&self) -> SilkBandwidth
fn clone(&self) -> SilkBandwidth
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SilkBandwidth
impl Debug for SilkBandwidth
Source§impl PartialEq for SilkBandwidth
impl PartialEq for SilkBandwidth
impl Copy for SilkBandwidth
impl Eq for SilkBandwidth
impl StructuralPartialEq for SilkBandwidth
Auto Trait Implementations§
impl Freeze for SilkBandwidth
impl RefUnwindSafe for SilkBandwidth
impl Send for SilkBandwidth
impl Sync for SilkBandwidth
impl Unpin for SilkBandwidth
impl UnsafeUnpin for SilkBandwidth
impl UnwindSafe for SilkBandwidth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more