#[allow(async_fn_in_trait)]
pub trait Transport {
type Error;
async fn read_holding(&mut self, offset: u16, out: &mut [u16]) -> Result<(), Self::Error>;
async fn read_input(&mut self, offset: u16, out: &mut [u16]) -> Result<(), Self::Error>;
async fn read_coils(&mut self, offset: u16, out: &mut [bool]) -> Result<(), Self::Error>;
async fn read_discrete(&mut self, offset: u16, out: &mut [bool]) -> Result<(), Self::Error>;
async fn write_holding(&mut self, offset: u16, regs: &[u16]) -> Result<(), Self::Error>;
async fn write_coil(&mut self, offset: u16, on: bool) -> Result<(), Self::Error>;
fn max_read_words(&self) -> u16 {
125
}
}