pub enum TlvItem {
Container(Container),
DbRange(DbRange),
DbScale(DbScale),
DbInterval(DbInterval),
Chmap(Chmap),
Unknown(Vec<u32>),
}Expand description
Available items as data of TLV (Type-Length-Value) style in ALSA control interface.
When decoding from data of TLV, use implementation of TryFrom<&[u32]> trait. Data assigned
to each enumeration implements TlvData, TryFrom<&[u32], and Vec::<u32>::from(&Self) trait.
When decoding to data of TLV, use implementation of Vec::<u32>::from(&Self) for the data.
Variants§
Container(Container)
DbRange(DbRange)
DbScale(DbScale)
DbInterval(DbInterval)
Chmap(Chmap)
Unknown(Vec<u32>)
Trait Implementations§
Source§impl ToDbInterval for TlvItem
impl ToDbInterval for TlvItem
fn to_dbinterval( &self, range: &ValueRange, ) -> Result<DbInterval, ToDbIntervalError>
Source§impl ToValueRange for TlvItem
impl ToValueRange for TlvItem
fn to_valuerange(&self, range: &ValueRange) -> Option<ValueRange>
impl Eq for TlvItem
impl StructuralPartialEq for TlvItem
Auto Trait Implementations§
impl Freeze for TlvItem
impl RefUnwindSafe for TlvItem
impl Send for TlvItem
impl Sync for TlvItem
impl Unpin for TlvItem
impl UnwindSafe for TlvItem
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