pub struct Container {
pub entries: Vec<TlvItem>,
}Expand description
The data to express container to aggregate multiple data for TLV (Type-Length-Value) of ALSA control interface.
It has SNDRV_CTL_TLVT_CONTAINER (=0) in its type field and has variable number of elements in
value field.
Fields§
§entries: Vec<TlvItem>The entries of data for TLV.
Trait Implementations§
Source§impl<'a> TlvData<'a> for Container
impl<'a> TlvData<'a> for Container
Source§fn value_type(&self) -> u32
fn value_type(&self) -> u32
Return the value of type field. It should come from UAPI of Linux kernel.
Source§fn value_length(&self) -> usize
fn value_length(&self) -> usize
Return the length of value field. It should be in byte unit and multiples of 4 as result.
Source§impl ToDbInterval for Container
impl ToDbInterval for Container
fn to_dbinterval( &self, range: &ValueRange, ) -> Result<DbInterval, ToDbIntervalError>
Source§impl ToValueRange for Container
impl ToValueRange for Container
fn to_valuerange(&self, range: &ValueRange) -> Option<ValueRange>
impl Eq for Container
impl StructuralPartialEq for Container
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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