1 2 3 4 5 6 7 8 9
use crate::error::EtpResult; pub trait TransportLayer { /// Send a command to the target device fn send(&mut self, command: Vec<u8>) -> EtpResult<()>; /// Receive a response from the target device fn receive(&mut self, expected_bytes: usize) -> EtpResult<Vec<u8>>; }