1 2 3 4 5 6 7 8 9 10
use crate::dsu::DSUFrame; use crate::errors::DeviceError; pub trait Device { /// Initialize the device fn initialize(&self) -> Result<(), DeviceError>; /// Read a DSU frame from the device fn read_frame(&self) -> Result<DSUFrame, DeviceError>; }