rdif_base/
lib.rs

1#![cfg_attr(not(test), no_std)]
2
3extern crate alloc;
4
5pub use as_any::{AsAny, Downcast};
6pub use rdif_def::{CpuId, KError, custom_type, irq};
7
8pub mod io;
9
10pub trait DriverGeneric: Send + AsAny {
11    fn open(&mut self) -> Result<(), KError>;
12    fn close(&mut self) -> Result<(), KError>;
13}