#[repr(C)]pub struct OsFileSystemApi {Show 19 fields
pub stat: Option<unsafe extern "C" fn(path: *const c_char) -> FileStatT>,
pub directory_entries: Option<unsafe extern "C" fn(path: *const c_char, ta: *mut TempAllocatorI) -> *mut StringsT>,
pub make_directory: Option<unsafe extern "C" fn(path: *const c_char) -> bool>,
pub remove_file: Option<unsafe extern "C" fn(path: *const c_char) -> bool>,
pub remove_directory: Option<unsafe extern "C" fn(path: *const c_char) -> bool>,
pub rename: Option<unsafe extern "C" fn(old_name: *const c_char, new_name: *const c_char) -> bool>,
pub copy_file: Option<unsafe extern "C" fn(from: *const c_char, to: *const c_char) -> bool>,
pub getcwd: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI) -> *const c_char>,
pub chdir: Option<unsafe extern "C" fn(path: *const c_char) -> bool>,
pub is_absolute: Option<unsafe extern "C" fn(path: *const c_char) -> bool>,
pub absolute: Option<unsafe extern "C" fn(path: *const c_char, ta: *mut TempAllocatorI) -> *const c_char>,
pub temp_directory: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI) -> *const c_char>,
pub create_watcher: Option<unsafe extern "C" fn(subtree_path: *const c_char) -> FileSystemWatcherO>,
pub any_changes: Option<unsafe extern "C" fn(watcher: FileSystemWatcherO) -> bool>,
pub destroy_watcher: Option<unsafe extern "C" fn(watcher: FileSystemWatcherO)>,
pub create_detailed_watcher: Option<unsafe extern "C" fn(subtree_path: *const c_char) -> *mut FileSystemDetailedWatcherO>,
pub detailed_changes: Option<unsafe extern "C" fn(arg1: *mut FileSystemDetailedWatcherO, ta: *mut TempAllocatorI) -> *mut FileSystemChangeT>,
pub destroy_detailed_watcher: Option<unsafe extern "C" fn(watcher: *mut FileSystemDetailedWatcherO)>,
pub app_folder: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI) -> *const c_char>,
}
Fields§
§stat: Option<unsafe extern "C" fn(path: *const c_char) -> FileStatT>
§directory_entries: Option<unsafe extern "C" fn(path: *const c_char, ta: *mut TempAllocatorI) -> *mut StringsT>
§make_directory: Option<unsafe extern "C" fn(path: *const c_char) -> bool>
§remove_file: Option<unsafe extern "C" fn(path: *const c_char) -> bool>
§remove_directory: Option<unsafe extern "C" fn(path: *const c_char) -> bool>
§rename: Option<unsafe extern "C" fn(old_name: *const c_char, new_name: *const c_char) -> bool>
§copy_file: Option<unsafe extern "C" fn(from: *const c_char, to: *const c_char) -> bool>
§getcwd: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI) -> *const c_char>
§chdir: Option<unsafe extern "C" fn(path: *const c_char) -> bool>
§is_absolute: Option<unsafe extern "C" fn(path: *const c_char) -> bool>
§absolute: Option<unsafe extern "C" fn(path: *const c_char, ta: *mut TempAllocatorI) -> *const c_char>
§temp_directory: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI) -> *const c_char>
§create_watcher: Option<unsafe extern "C" fn(subtree_path: *const c_char) -> FileSystemWatcherO>
§any_changes: Option<unsafe extern "C" fn(watcher: FileSystemWatcherO) -> bool>
§destroy_watcher: Option<unsafe extern "C" fn(watcher: FileSystemWatcherO)>
§create_detailed_watcher: Option<unsafe extern "C" fn(subtree_path: *const c_char) -> *mut FileSystemDetailedWatcherO>
§detailed_changes: Option<unsafe extern "C" fn(arg1: *mut FileSystemDetailedWatcherO, ta: *mut TempAllocatorI) -> *mut FileSystemChangeT>
§destroy_detailed_watcher: Option<unsafe extern "C" fn(watcher: *mut FileSystemDetailedWatcherO)>
§app_folder: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI) -> *const c_char>
Implementations§
Source§impl OsFileSystemApi
impl OsFileSystemApi
pub unsafe fn stat(&self, path: *const c_char) -> FileStatT
pub unsafe fn directory_entries( &self, path: *const c_char, ta: *mut TempAllocatorI, ) -> *mut StringsT
pub unsafe fn make_directory(&self, path: *const c_char) -> bool
pub unsafe fn remove_file(&self, path: *const c_char) -> bool
pub unsafe fn remove_directory(&self, path: *const c_char) -> bool
pub unsafe fn rename( &self, old_name: *const c_char, new_name: *const c_char, ) -> bool
pub unsafe fn copy_file(&self, from: *const c_char, to: *const c_char) -> bool
pub unsafe fn getcwd(&self, ta: *mut TempAllocatorI) -> *const c_char
pub unsafe fn chdir(&self, path: *const c_char) -> bool
pub unsafe fn is_absolute(&self, path: *const c_char) -> bool
pub unsafe fn absolute( &self, path: *const c_char, ta: *mut TempAllocatorI, ) -> *const c_char
pub unsafe fn temp_directory(&self, ta: *mut TempAllocatorI) -> *const c_char
pub unsafe fn create_watcher( &self, subtree_path: *const c_char, ) -> FileSystemWatcherO
pub unsafe fn any_changes(&self, watcher: FileSystemWatcherO) -> bool
pub unsafe fn destroy_watcher(&self, watcher: FileSystemWatcherO)
pub unsafe fn create_detailed_watcher( &self, subtree_path: *const c_char, ) -> *mut FileSystemDetailedWatcherO
pub unsafe fn detailed_changes( &self, arg1: *mut FileSystemDetailedWatcherO, ta: *mut TempAllocatorI, ) -> *mut FileSystemChangeT
pub unsafe fn destroy_detailed_watcher( &self, watcher: *mut FileSystemDetailedWatcherO, )
pub unsafe fn app_folder(&self, ta: *mut TempAllocatorI) -> *const c_char
Trait Implementations§
Source§impl Clone for OsFileSystemApi
impl Clone for OsFileSystemApi
Source§fn clone(&self) -> OsFileSystemApi
fn clone(&self) -> OsFileSystemApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for OsFileSystemApi
impl Default for OsFileSystemApi
Source§fn default() -> OsFileSystemApi
fn default() -> OsFileSystemApi
Returns the “default value” for a type. Read more
impl Copy for OsFileSystemApi
Auto Trait Implementations§
impl Freeze for OsFileSystemApi
impl RefUnwindSafe for OsFileSystemApi
impl Send for OsFileSystemApi
impl Sync for OsFileSystemApi
impl Unpin for OsFileSystemApi
impl UnwindSafe for OsFileSystemApi
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