edge-nal 0.6.0

Hosts a bunch of traits which are not yet available in the embedded-nal-async crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use embedded_io_async::ErrorType;

pub trait Readable: ErrorType {
    async fn readable(&mut self) -> Result<(), Self::Error>;
}

impl<T> Readable for &mut T
where
    T: Readable,
{
    async fn readable(&mut self) -> Result<(), Self::Error> {
        (**self).readable().await
    }
}