pub trait AppIO<T, U> where
T: Clone,
U: Clone, {
fn open(&self, id: &U, mode: Mode) -> T;
fn read(&self, h: &T, num: usize) -> Bytes;
fn write(&self, h: &T, data: &Bytes) -> usize;
fn seek(&self, h: &T, whence: Whence, num: isize);
fn close(&self, h: &T);
}
Loading content...
Loading content...