kos_sys::os::fsStruct vfs_handler_t
Source #[repr(C)]
pub struct vfs_handler_t {Show 29 fields
pub nmmgr: nmmgr_handler_t,
pub cache: c_int,
pub privdata: *mut c_void,
pub open: Option<unsafe extern "C" fn(vfs: vfs_handler_t, fn: *const c_char, mode: c_int) -> *mut c_void>,
pub close: Option<unsafe extern "C" fn(hnd: *mut c_void) -> c_int>,
pub read: Option<unsafe extern "C" fn(hnd: *mut c_void, buffer: *mut c_void, cnt: c_size_t) -> c_ssize_t>,
pub write: Option<unsafe extern "C" fn(hnd: *mut c_void, buffer: *const c_void, cnt: c_size_t) -> c_ssize_t>,
pub seek: Option<unsafe extern "C" fn(hnd: *mut c_void, offset: off_t, whence: c_int) -> off_t>,
pub tell: Option<unsafe extern "C" fn(hnd: *mut c_void) -> off_t>,
pub total: Option<unsafe extern "C" fn(hnd: *mut c_void) -> c_size_t>,
pub readdir: Option<unsafe extern "C" fn(hnd: *mut c_void) -> *mut dirent_t>,
pub ioctl: Option<unsafe extern "C" fn(hnd: *mut c_void, cmd: c_int, ap: VaList<'_, '_>) -> c_int>,
pub rename: Option<unsafe extern "C" fn(vfs: *mut vfs_handler_t, fn1: *const c_char, fn2: *const c_char) -> c_int>,
pub unlink: Option<unsafe extern "C" fn(vfs: *mut vfs_handler_t, fn: *const c_char) -> c_int>,
pub mmap: Option<unsafe extern "C" fn(fd: *mut c_void) -> *mut c_void>,
pub complete: Option<unsafe extern "C" fn(fd: *mut c_void, rv: *mut c_ssize_t) -> c_int>,
pub stat: Option<unsafe extern "C" fn(vfs: *mut vfs_handler_t, path: *const c_char, buf: *mut stat, flag: c_int) -> c_int>,
pub mkdir: Option<unsafe extern "C" fn(vfs: *mut vfs_handler_t, fn: *const c_char) -> c_int>,
pub rmdir: Option<unsafe extern "C" fn(vfs: *mut vfs_handler_t, fn: *const c_char) -> c_int>,
pub fcntl: Option<unsafe extern "C" fn(fd: *mut c_void, cmd: c_int, ap: VaList<'_, '_>) -> c_int>,
pub poll: Option<unsafe extern "C" fn(fd: *mut c_void, events: c_short) -> c_short>,
pub link: Option<unsafe extern "C" fn(vfs: *mut vfs_handler_t, path1: *const c_char, path2: *const c_char) -> c_int>,
pub symlink: Option<unsafe extern "C" fn(vfs: *mut vfs_handler_t, path1: *const c_char, path2: *const c_char) -> c_int>,
pub seek64: Option<unsafe extern "C" fn(hnd: *mut c_void, offset: off64_t, whence: c_int) -> off64_t>,
pub tell64: Option<unsafe extern "C" fn(hnd: *mut c_void) -> off64_t>,
pub total64: Option<unsafe extern "C" fn(hnd: *mut c_void) -> u64>,
pub readlink: Option<unsafe extern "C" fn(vfs: *mut vfs_handler_t, path: *const c_char, buf: *mut c_char, bufsize: c_size_t) -> c_ssize_t>,
pub rewinddir: Option<unsafe extern "C" fn(hnd: *mut c_void) -> c_int>,
pub fstat: Option<unsafe extern "C" fn(hnd: *mut c_void, st: *mut stat) -> c_int>,
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
[From]<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.