pub trait EraseWrite { // Required methods fn write(&mut self, buf: &[u8]); fn flush(&mut self); }
All of this nonsense is to try and erase the Error type of the embedded_hal::serial::nb::Write implementor.
embedded_hal::serial::nb::Write