[src]

Struct rustuv::file::FsRequest

pub struct FsRequest {
    req: *uv_fs_t,
    // some fields omitted
}

Fields

req

Methods

impl FsRequest

fn open(io: &mut UvIoFactory, path: &CString, flags: int, mode: int) -> Result<FileWatcher, UvError>

fn lstat(loop_: &Loop, path: &CString) -> Result<FileStat, UvError>

fn stat(loop_: &Loop, path: &CString) -> Result<FileStat, UvError>

fn write(loop_: &Loop, fd: c_int, buf: &[u8], offset: i64) -> Result<(), UvError>

fn read(loop_: &Loop, fd: c_int, buf: &mut [u8], offset: i64) -> Result<int, UvError>

fn mkdir(loop_: &Loop, path: &CString, mode: c_int) -> Result<(), UvError>

fn rmdir(loop_: &Loop, path: &CString) -> Result<(), UvError>

fn rename(loop_: &Loop, path: &CString, to: &CString) -> Result<(), UvError>

fn chmod(loop_: &Loop, path: &CString, mode: c_int) -> Result<(), UvError>

fn readdir(loop_: &Loop, path: &CString, flags: c_int) -> Result<~[Path], UvError>

fn chown(loop_: &Loop, path: &CString, uid: int, gid: int) -> Result<(), UvError>

fn truncate(loop_: &Loop, file: c_int, offset: i64) -> Result<(), UvError>

fn fsync(loop_: &Loop, fd: c_int) -> Result<(), UvError>

fn datasync(loop_: &Loop, fd: c_int) -> Result<(), UvError>

fn utime(loop_: &Loop, path: &CString, atime: u64, mtime: u64) -> Result<(), UvError>

fn get_result(&self) -> ssize_t

fn get_stat(&self) -> uv_stat_t

fn get_ptr(&self) -> *c_void

fn mkstat(&self) -> FileStat

Trait Implementations

impl Drop for FsRequest

fn drop(&mut self)