[][src]Struct libuv::requests::fs::FsReq

pub struct FsReq { /* fields omitted */ }

File system request type.

Implementations

impl FsReq[src]

pub fn new<CB: Into<FsCB<'static>>>(cb: CB) -> Result<FsReq>[src]

Create a new fs request

pub fn request_type(&self) -> FsType[src]

Type of request that was made

pub fn loop(&self) -> Loop[src]

The loop that ran this request

pub fn result(&self) -> Result<usize>[src]

Returns the result from the request

pub fn system_error(&self) -> i32[src]

Returns the platform specific error code - GetLastError() value on Windows and req.result() on other platforms.

pub fn stat(&self) -> Stat[src]

Returns the file stats

pub fn dir(&self) -> Option<Dir>[src]

If this request is from opendir() or readdir(), return the Dir struct

pub fn statfs(&self) -> Option<StatFs>[src]

If this request is from fs_statfs(), return the StatFs struct

pub fn real_path(&self) -> Option<String>[src]

If this request is from fs_readlink() or fs_realpath(), return the path

pub fn path(&self) -> String[src]

Returns the path of this file

pub fn destroy(&mut self)[src]

Free up memory associated with this request. If you are using one of the async fs_* functions, this will be called automatically after the callback runs.

Trait Implementations

impl Clone for FsReq[src]

impl Copy for FsReq[src]

impl From<FsReq> for Req[src]

impl ReqTrait for FsReq[src]

impl ToReq for FsReq[src]

Auto Trait Implementations

impl RefUnwindSafe for FsReq

impl !Send for FsReq

impl !Sync for FsReq

impl Unpin for FsReq

impl UnwindSafe for FsReq

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.