redox_scheme

Trait Scheme

Source
pub trait Scheme {
Show 26 methods // Provided methods fn open( &mut self, path: &str, flags: usize, uid: u32, gid: u32, ) -> Result<usize> { ... } fn xopen( &mut self, path: &str, flags: usize, ctx: &CallerCtx, ) -> Result<OpenResult> { ... } fn rmdir(&mut self, path: &str, uid: u32, gid: u32) -> Result<usize> { ... } fn unlink(&mut self, path: &str, uid: u32, gid: u32) -> Result<usize> { ... } fn dup(&mut self, old_id: usize, buf: &[u8]) -> Result<usize> { ... } fn xdup( &mut self, old_id: usize, buf: &[u8], ctx: &CallerCtx, ) -> Result<OpenResult> { ... } fn read_old(&mut self, id: usize, buf: &mut [u8]) -> Result<usize> { ... } fn read( &mut self, id: usize, buf: &mut [u8], offset: u64, fcntl_flags: u32, ) -> Result<usize> { ... } fn write_old(&mut self, id: usize, buf: &[u8]) -> Result<usize> { ... } fn write( &mut self, id: usize, buf: &[u8], offset: u64, fcntl_flags: u32, ) -> Result<usize> { ... } fn getdents<'buf>( &mut self, id: usize, buf: DirentBuf<&'buf mut [u8]>, opaque_offset: u64, ) -> Result<DirentBuf<&'buf mut [u8]>> { ... } fn fsize(&mut self, id: usize) -> Result<u64> { ... } fn fchmod(&mut self, id: usize, mode: u16) -> Result<usize> { ... } fn fchown(&mut self, id: usize, uid: u32, gid: u32) -> Result<usize> { ... } fn fcntl(&mut self, id: usize, cmd: usize, arg: usize) -> Result<usize> { ... } fn fevent(&mut self, id: usize, flags: EventFlags) -> Result<EventFlags> { ... } fn fpath(&mut self, id: usize, buf: &mut [u8]) -> Result<usize> { ... } fn frename( &mut self, id: usize, path: &str, uid: u32, gid: u32, ) -> Result<usize> { ... } fn fstat(&mut self, id: usize, stat: &mut Stat) -> Result<usize> { ... } fn fstatvfs(&mut self, id: usize, stat: &mut StatVfs) -> Result<usize> { ... } fn fsync(&mut self, id: usize) -> Result<usize> { ... } fn ftruncate(&mut self, id: usize, len: usize) -> Result<usize> { ... } fn futimens(&mut self, id: usize, times: &[TimeSpec]) -> Result<usize> { ... } fn close(&mut self, id: usize) -> Result<usize> { ... } fn mmap_prep( &mut self, id: usize, offset: u64, size: usize, flags: MapFlags, ) -> Result<usize> { ... } fn munmap( &mut self, id: usize, offset: u64, size: usize, flags: MunmapFlags, ) -> Result<usize> { ... }
}

Provided Methods§

Source

fn open( &mut self, path: &str, flags: usize, uid: u32, gid: u32, ) -> Result<usize>

Source

fn xopen( &mut self, path: &str, flags: usize, ctx: &CallerCtx, ) -> Result<OpenResult>

Source

fn rmdir(&mut self, path: &str, uid: u32, gid: u32) -> Result<usize>

Source

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

Source

fn xdup( &mut self, old_id: usize, buf: &[u8], ctx: &CallerCtx, ) -> Result<OpenResult>

Source

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

Source

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

Source

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

Source

fn write( &mut self, id: usize, buf: &[u8], offset: u64, fcntl_flags: u32, ) -> Result<usize>

Source

fn getdents<'buf>( &mut self, id: usize, buf: DirentBuf<&'buf mut [u8]>, opaque_offset: u64, ) -> Result<DirentBuf<&'buf mut [u8]>>

Source

fn fsize(&mut self, id: usize) -> Result<u64>

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn frename( &mut self, id: usize, path: &str, uid: u32, gid: u32, ) -> Result<usize>

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn mmap_prep( &mut self, id: usize, offset: u64, size: usize, flags: MapFlags, ) -> Result<usize>

Source

fn munmap( &mut self, id: usize, offset: u64, size: usize, flags: MunmapFlags, ) -> Result<usize>

Implementors§