pub trait Scheme {
fn handle(&mut self, packet: &mut Packet) { ... }
fn open(&mut self, path: &str, flags: usize, mode: usize) -> Result { ... }
fn unlink(&mut self, path: &str) -> Result { ... }
fn mkdir(&mut self, path: &str, mode: usize) -> Result { ... }
fn read(&mut self, id: usize, buf: &mut [u8]) -> Result { ... }
fn write(&mut self, id: usize, buf: &[u8]) -> Result { ... }
fn seek(&mut self, id: usize, pos: usize, whence: usize) -> Result { ... }
fn sync(&mut self, id: usize) -> Result { ... }
fn truncate(&mut self, id: usize, len: usize) -> Result { ... }
fn close(&mut self, id: usize) -> Result { ... }
}
Provided Methods
fn handle(&mut self, packet: &mut Packet)
fn open(&mut self, path: &str, flags: usize, mode: usize) -> Result
fn unlink(&mut self, path: &str) -> Result
fn mkdir(&mut self, path: &str, mode: usize) -> Result
fn read(&mut self, id: usize, buf: &mut [u8]) -> Result
fn write(&mut self, id: usize, buf: &[u8]) -> Result
fn seek(&mut self, id: usize, pos: usize, whence: usize) -> Result
fn sync(&mut self, id: usize) -> Result
fn truncate(&mut self, id: usize, len: usize) -> Result
fn close(&mut self, id: usize) -> Result
Implementors