pub trait IntoOnewireDriver {
// Required method
fn into_driver(self) -> Result<Ds18b20Driver, Error>;
}Expand description
What ow_loop needs: something that becomes a driver.
Two shapes implement it, because the RMT has two possible owners. An app
that drives nothing else with the RMT passes OnewireResources and the
peripheral goes here whole; an app that also drives the SK6812 bars passes
OnewireChannels from crate::board::rmt::RmtChannels and the two
share the peripheral. Same loop either way — the choice is the board’s and
the application’s, not this layer’s.
Required Methods§
fn into_driver(self) -> Result<Ds18b20Driver, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".