pub enum Rates<'a> {
Continuous(u32, u32),
Discrete(&'a [u32]),
}Expand description
Sampling rates that shall be supported by an steaming endpoint
Variants§
Continuous(u32, u32)
A continuous range of sampling rates in samples/second defined by a tuple including a minimum value and a maximum value. The maximum value must be greater than the minimum value.
Discrete(&'a [u32])
A set of discrete sampling rates in samples/second
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Rates<'a>
impl<'a> RefUnwindSafe for Rates<'a>
impl<'a> Send for Rates<'a>
impl<'a> Sync for Rates<'a>
impl<'a> Unpin for Rates<'a>
impl<'a> UnwindSafe for Rates<'a>
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