sel4_driver_interfaces::serial

Trait Read

Source
pub trait Read<Word = u8>: ErrorType
where Word: Copy,
{ // Required method fn read(&mut self) -> Result<Word, Error<Self::Error>>; }
Expand description

Read half of a serial interface.

Some serial interfaces support different data sizes (8 bits, 9 bits, etc.); This can be encoded in this trait via the Word type parameter.

Required Methods§

Source

fn read(&mut self) -> Result<Word, Error<Self::Error>>

Reads a single word from the serial interface

Implementations on Foreign Types§

Source§

impl<T, Word> Read<Word> for &mut T
where T: Read<Word> + ?Sized, Word: Copy,

Source§

fn read(&mut self) -> Result<Word, Error<<&mut T as ErrorType>::Error>>

Implementors§

Source§

impl<R: RawMutex, Word: Copy, T: Deref<Target = Mutex<R, U>>, U: Read<Word>> Read<Word> for &WrappedMutex<T>

Source§

impl<T: Read, const WRITE_BUF_SIZE: usize> Read for WriteBuffered<T, WRITE_BUF_SIZE>

Source§

impl<Word: Copy, T: Deref<Target = RefCell<U>>, U: Read<Word>> Read<Word> for &WrappedRefCell<T>