pub struct FsReq { /* private fields */ }
Expand description
File system request type.
Implementations§
source§impl FsReq
impl FsReq
sourcepub fn request_type(&self) -> FsType
pub fn request_type(&self) -> FsType
Type of request that was made
sourcepub fn system_error(&self) -> i32
pub fn system_error(&self) -> i32
Returns the platform specific error code - GetLastError() value on Windows and req.result() on other platforms.
sourcepub fn dir(&self) -> Option<Dir>
pub fn dir(&self) -> Option<Dir>
If this request is from opendir() or readdir(), return the Dir struct
sourcepub fn statfs(&self) -> Option<StatFs>
pub fn statfs(&self) -> Option<StatFs>
If this request is from fs_statfs(), return the StatFs struct
Trait Implementations§
impl Copy for FsReq
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more