pub trait AvcSelectorOperation {
const FUNC_BLOCK_ID_LIST: &'static [u8];
const INPUT_PLUG_ID_LIST: &'static [u8];
// Provided methods
fn create_selector_parameters() -> AvcSelectorParameters { ... }
fn cache_selectors(
avc: &BebobAvc,
params: &mut AvcSelectorParameters,
timeout_ms: u32,
) -> Result<(), Error> { ... }
fn update_selectors(
avc: &BebobAvc,
params: &AvcSelectorParameters,
old: &mut AvcSelectorParameters,
timeout_ms: u32,
) -> Result<(), Error> { ... }
}
Expand description
The trait of select operation for audio function block.
Required Associated Constants§
Sourceconst FUNC_BLOCK_ID_LIST: &'static [u8]
const FUNC_BLOCK_ID_LIST: &'static [u8]
The list of function block identifier.
Sourceconst INPUT_PLUG_ID_LIST: &'static [u8]
const INPUT_PLUG_ID_LIST: &'static [u8]
The list of plug identifier.
Provided Methods§
Sourcefn create_selector_parameters() -> AvcSelectorParameters
fn create_selector_parameters() -> AvcSelectorParameters
Instantiate parameters.
Sourcefn cache_selectors(
avc: &BebobAvc,
params: &mut AvcSelectorParameters,
timeout_ms: u32,
) -> Result<(), Error>
fn cache_selectors( avc: &BebobAvc, params: &mut AvcSelectorParameters, timeout_ms: u32, ) -> Result<(), Error>
Cache state of hardware to the parameters.
Sourcefn update_selectors(
avc: &BebobAvc,
params: &AvcSelectorParameters,
old: &mut AvcSelectorParameters,
timeout_ms: u32,
) -> Result<(), Error>
fn update_selectors( avc: &BebobAvc, params: &AvcSelectorParameters, old: &mut AvcSelectorParameters, timeout_ms: u32, ) -> Result<(), Error>
Update the hardware when detecting any changes in the parameters.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.