[][src]Trait syscall::scheme::Scheme

pub trait Scheme {
    fn handle(&self, packet: &mut Packet) { ... }
fn open(
        &self,
        path: &[u8],
        flags: usize,
        uid: u32,
        gid: u32
    ) -> Result<usize> { ... }
fn chmod(&self, path: &[u8], mode: u16, uid: u32, gid: u32) -> Result<usize> { ... }
fn rmdir(&self, path: &[u8], uid: u32, gid: u32) -> Result<usize> { ... }
fn unlink(&self, path: &[u8], uid: u32, gid: u32) -> Result<usize> { ... }
fn dup(&self, old_id: usize, buf: &[u8]) -> Result<usize> { ... }
fn read(&self, id: usize, buf: &mut [u8]) -> Result<usize> { ... }
fn write(&self, id: usize, buf: &[u8]) -> Result<usize> { ... }
fn seek(&self, id: usize, pos: usize, whence: usize) -> Result<usize> { ... }
fn fchmod(&self, id: usize, mode: u16) -> Result<usize> { ... }
fn fchown(&self, id: usize, uid: u32, gid: u32) -> Result<usize> { ... }
fn fcntl(&self, id: usize, cmd: usize, arg: usize) -> Result<usize> { ... }
fn fevent(&self, id: usize, flags: usize) -> Result<usize> { ... }
fn fmap(&self, id: usize, map: &Map) -> Result<usize> { ... }
fn funmap(&self, address: usize) -> Result<usize> { ... }
fn fpath(&self, id: usize, buf: &mut [u8]) -> Result<usize> { ... }
fn frename(
        &self,
        id: usize,
        path: &[u8],
        uid: u32,
        gid: u32
    ) -> Result<usize> { ... }
fn fstat(&self, id: usize, stat: &mut Stat) -> Result<usize> { ... }
fn fstatvfs(&self, id: usize, stat: &mut StatVfs) -> Result<usize> { ... }
fn fsync(&self, id: usize) -> Result<usize> { ... }
fn ftruncate(&self, id: usize, len: usize) -> Result<usize> { ... }
fn futimens(&self, id: usize, times: &[TimeSpec]) -> Result<usize> { ... }
fn close(&self, id: usize) -> Result<usize> { ... } }

Provided methods

fn handle(&self, packet: &mut Packet)

fn open(&self, path: &[u8], flags: usize, uid: u32, gid: u32) -> Result<usize>

fn chmod(&self, path: &[u8], mode: u16, uid: u32, gid: u32) -> Result<usize>

fn rmdir(&self, path: &[u8], uid: u32, gid: u32) -> Result<usize>

fn dup(&self, old_id: usize, buf: &[u8]) -> Result<usize>

fn read(&self, id: usize, buf: &mut [u8]) -> Result<usize>

fn write(&self, id: usize, buf: &[u8]) -> Result<usize>

fn seek(&self, id: usize, pos: usize, whence: usize) -> Result<usize>

fn fchmod(&self, id: usize, mode: u16) -> Result<usize>

fn fchown(&self, id: usize, uid: u32, gid: u32) -> Result<usize>

fn fcntl(&self, id: usize, cmd: usize, arg: usize) -> Result<usize>

fn fevent(&self, id: usize, flags: usize) -> Result<usize>

fn fmap(&self, id: usize, map: &Map) -> Result<usize>

fn funmap(&self, address: usize) -> Result<usize>

fn fpath(&self, id: usize, buf: &mut [u8]) -> Result<usize>

fn frename(&self, id: usize, path: &[u8], uid: u32, gid: u32) -> Result<usize>

fn fstat(&self, id: usize, stat: &mut Stat) -> Result<usize>

fn fstatvfs(&self, id: usize, stat: &mut StatVfs) -> Result<usize>

fn fsync(&self, id: usize) -> Result<usize>

fn ftruncate(&self, id: usize, len: usize) -> Result<usize>

fn futimens(&self, id: usize, times: &[TimeSpec]) -> Result<usize>

fn close(&self, id: usize) -> Result<usize>

Loading content...

Implementors

Loading content...