pub trait SmartLedsWriteAsync {
type Error;
type Color;
// Required method
async fn write<T, I>(&mut self, iterator: T) -> Result<(), Self::Error>
where T: IntoIterator<Item = I>,
I: Into<Self::Color>;
}Expand description
An async trait that Smart Led Drivers implement
The amount of time each iteration of iterator might take is undefined.
Drivers, where this might lead to issues, aren’t expected to work in all cases.
Required Associated Types§
Required Methods§
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.