Struct EnsembleSourceParameters

Source
pub struct EnsembleSourceParameters {
    pub output_sources: [usize; 18],
    pub capture_sources: [usize; 18],
    pub headphone_sources: [usize; 2],
}
Expand description

Parameters of input/output source.

Fields§

§output_sources: [usize; 18]

To (18): analog-output-0, analog-output-1, analog-output-2, analog-output-3, analog-output-4, analog-output-5, analog-output-6, analog-output-7, spdif-output-0, spdif-output-1, adat-output-0, adat-output-1, adat-input-output-2, adat-output-3, adat-output-4, adat-output-5, adat-input-output-6, adat-output-7 From (40): analog-input-0, analog-input-1, analog-input-2, analog-input-3, analog-input-4, analog-input-5, analog-input-6, analog-input-7, stream-input-0, stream-input-1, stream-input-2, stream-input-3, stream-input-4, stream-input-5, stream-input-6, stream-input-7, stream-input-8, stream-input-9, stream-input-10, stream-input-11, stream-input-12, stream-input-13, stream-input-14, stream-input-15, stream-input-16, stream-input-17, spdif-input-0, spdif-input-1, adat-input-0, adat-input-1, adat-input-2, adat-input-3, adat-input-4, adat-input-5, adat-input-6, adat-input-7, mixer-output-1, mixer-output-2, mixer-output-3, mixer-output-4,

§capture_sources: [usize; 18]

To (18): stream-output-0, stream-output-1, stream-output-2, stream-output-3, stream-output-4, stream-output-5, stream-output-6, stream-output-7, stream-output-8, stream-output-9, stream-output-10, stream-output-11, stream-output-12, stream-output-13, stream-output-14, stream-output-15, stream-output-16, stream-output-17, From(18): analog-input-0, analog-input-1, analog-input-2, analog-input-3, analog-input-4, analog-input-5, analog-input-6, analog-input-7, spdif-input-0, spdif-input-1, adat-input-0, adat-input-1, adat-input-2, adat-input-3, adat-input-4, adat-input-5, adat-input-6, adat-input-7,

§headphone_sources: [usize; 2]

From (6): analog-output-1/2, analog-output-3/4, analog-output-5/6, analog-output-7/8, spdif-output-1/2, none,

Trait Implementations§

Source§

impl Clone for EnsembleSourceParameters

Source§

fn clone(&self) -> EnsembleSourceParameters

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EnsembleSourceParameters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EnsembleSourceParameters

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl EnsembleParameterProtocol<EnsembleSourceParameters> for EnsembleSourceProtocol

Source§

fn whole_update( avc: &BebobAvc, params: &mut T, timeout_ms: u32, ) -> Result<(), Error>

Update the hardware for all of the parameters
Source§

fn partial_update( avc: &BebobAvc, new: &T, old: &mut T, timeout_ms: u32, ) -> Result<(), Error>

Update the hardware for the part of parameters.
Source§

impl EnsembleParametersConverter<EnsembleSourceParameters> for EnsembleSourceProtocol

Source§

fn build_cmds(params: &EnsembleSourceParameters) -> Vec<EnsembleCmd>

Build vector of commands by the given parameters.
Source§

fn parse_cmds(params: &mut EnsembleSourceParameters, cmds: &[EnsembleCmd])

Parse the given vector of commands for parameters.
Source§

impl From<&EnsembleSourceParameters> for Vec<EnsembleCmd>

Source§

fn from(params: &EnsembleSourceParameters) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for EnsembleSourceParameters

Source§

fn eq(&self, other: &EnsembleSourceParameters) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for EnsembleSourceParameters

Source§

impl Eq for EnsembleSourceParameters

Source§

impl StructuralPartialEq for EnsembleSourceParameters

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V