pub trait ClockSource: Sealed {
// Required method
fn select<S>(selector: &S, handle: &mut Handle)
where S: PeripheralClockSelector;
}Expand description
Implemented for SPI clock sources
Required Methods§
Sourcefn select<S>(selector: &S, handle: &mut Handle)where
S: PeripheralClockSelector,
fn select<S>(selector: &S, handle: &mut Handle)where
S: PeripheralClockSelector,
Select the clock source
This method is used by the SPI API internally. It should not be relevant to most users.
The selector argument should not be required to implement this trait,
but it makes sure that the caller has access to the peripheral they are
selecting the clock for.
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.