ClockSource

Trait ClockSource 

Source
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§

Source

fn select<S>(selector: &S, handle: &mut Handle)

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.

Implementors§

Source§

impl<T> ClockSource for T
where T: PeripheralClock,