pub struct MixerUnit { /* private fields */ }Implementations§
Source§impl MixerUnit
impl MixerUnit
Sourcepub fn parse(
interface: u8,
bytes: &[u8],
inputs: &[InputCluster],
) -> Result<Self, InvalidRoute>
pub fn parse( interface: u8, bytes: &[u8], inputs: &[InputCluster], ) -> Result<Self, InvalidRoute>
Parse exactly one UAC2 Mixer Unit descriptor (subtype 0x04), only after
resolving the channel count of every source in baSourceID.
Sourcepub fn parse_uac1(
interface: u8,
bytes: &[u8],
inputs: &[InputCluster],
) -> Result<Self, InvalidRoute>
pub fn parse_uac1( interface: u8, bytes: &[u8], inputs: &[InputCluster], ) -> Result<Self, InvalidRoute>
UAC1 uses the descriptor’s explicit four-byte output cluster.
Sourcepub fn parse_adc3(
interface: u8,
bytes: &[u8],
inputs: &[InputCluster],
outputs: u8,
) -> Result<Self, InvalidRoute>
pub fn parse_adc3( interface: u8, bytes: &[u8], inputs: &[InputCluster], outputs: u8, ) -> Result<Self, InvalidRoute>
Full ADC3 output count must come from the referenced, queried HC Cluster.
pub fn entity(&self) -> Entity
pub fn inputs(&self) -> &[InputCluster]
pub fn output_channels(&self) -> u8
pub fn crosspoint( &self, pin: u8, channel: u8, output: u8, ) -> Result<RouteControl, InvalidRoute>
Trait Implementations§
impl Eq for MixerUnit
impl StructuralPartialEq for MixerUnit
Auto Trait Implementations§
impl Forget for MixerUnit
impl Freeze for MixerUnit
impl Move for MixerUnit
impl RefUnwindSafe for MixerUnit
impl Send for MixerUnit
impl Sync for MixerUnit
impl Unpin for MixerUnit
impl UnsafeUnpin for MixerUnit
impl UnwindSafe for MixerUnit
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