Struct AudioLevel
pub struct AudioLevel {
pub level: u8,
pub voice_activity: bool,
}Expand description
An RFC 6464 §3 audio level indication.
Fields§
§level: u8-dBov, from 0 (loudest) to 127 (silence).
voice_activity: boolImplementations§
§impl AudioLevel
impl AudioLevel
pub fn from_byte(byte: u8) -> AudioLevel
Trait Implementations§
§impl Clone for AudioLevel
impl Clone for AudioLevel
§fn clone(&self) -> AudioLevel
fn clone(&self) -> AudioLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AudioLevel
§impl Debug for AudioLevel
impl Debug for AudioLevel
impl Eq for AudioLevel
§impl PartialEq for AudioLevel
impl PartialEq for AudioLevel
impl StructuralPartialEq for AudioLevel
Auto Trait Implementations§
impl Freeze for AudioLevel
impl RefUnwindSafe for AudioLevel
impl Send for AudioLevel
impl Sync for AudioLevel
impl Unpin for AudioLevel
impl UnsafeUnpin for AudioLevel
impl UnwindSafe for AudioLevel
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.