pubtraitRead<Word> {/// Read error
typeError;/// Reads a single word from the serial interface
fnread(&mutself)->nb::Result<Word, Self::Error>;}/// Write half of a serial interface
pubtraitWrite<Word> {/// Write error
typeError;/// Writes a single word to the serial interface
fnwrite(&mutself, word: Word)->nb::Result<(), Self::Error>;/// Ensures that none of the previously written words are still buffered
fnflush(&mutself)->nb::Result<(), Self::Error>;}