pub trait AsDevice: Debug { // Required methods fn device(&self) -> &dyn Device; fn into_boxed_device(self) -> Box<dyn Device>; }