Struct rustuv::file::FsRequest
pub struct FsRequest { req: *uv_fs_t, // some fields omitted }
Fields
req |
pub struct FsRequest { req: *uv_fs_t, // some fields omitted }
req |
impl FsRequest
fn open(io: &mut UvIoFactory, path: &CString, flags: int, mode: int) -> Result<FileWatcher, UvError>
fn unlink(loop_: &Loop, path: &CString) -> Result<(), 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 readlink(loop_: &Loop, path: &CString) -> 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 link(loop_: &Loop, src: &CString, dst: &CString) -> Result<(), UvError>
fn symlink(loop_: &Loop, src: &CString, dst: &CString) -> 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
impl Drop for FsRequest
fn drop(&mut self)
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).