playdate_device/interface/
blocking.rs

1use crate::device::command::Command;
2use crate::error::Error;
3
4pub trait Out: In {
5	fn send_cmd(&self, cmd: Command) -> Result<usize, Error>;
6}
7
8pub trait In {}
9
10pub trait Interface: In + Out {}
11// impl<T: In<Error = Err> + Out<Error = Err>, Err> Interface for T {}
12impl<T: In + Out> Interface for T {}