pub trait SamplingClockSourceOperation {
const DST: SignalAddr;
const SRC_LIST: &'static [SignalAddr];
// Provided methods
fn cache_src(
avc: &BebobAvc,
params: &mut SamplingClockParameters,
timeout_ms: u32,
) -> Result<(), Error> { ... }
fn update_src(
avc: &BebobAvc,
params: &SamplingClockParameters,
old: &mut SamplingClockParameters,
timeout_ms: u32,
) -> Result<(), Error> { ... }
}
Expand description
The trait of source operation for sampling clock.
Required Associated Constants§
Sourceconst DST: SignalAddr
const DST: SignalAddr
The destination plug address for source signal.
Sourceconst SRC_LIST: &'static [SignalAddr]
const SRC_LIST: &'static [SignalAddr]
The list of supported sources expressed by plug address.
Provided Methods§
Sourcefn cache_src(
avc: &BebobAvc,
params: &mut SamplingClockParameters,
timeout_ms: u32,
) -> Result<(), Error>
fn cache_src( avc: &BebobAvc, params: &mut SamplingClockParameters, timeout_ms: u32, ) -> Result<(), Error>
Cache the state of sampling clock to the parameters.
Sourcefn update_src(
avc: &BebobAvc,
params: &SamplingClockParameters,
old: &mut SamplingClockParameters,
timeout_ms: u32,
) -> Result<(), Error>
fn update_src( avc: &BebobAvc, params: &SamplingClockParameters, old: &mut SamplingClockParameters, timeout_ms: u32, ) -> Result<(), Error>
Update the hardware by the given parameter. This operation can involve INTERIM AV/C response to expand response time of AV/C transaction.
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.