#[repr(C)]pub struct OsSystemApi {
pub open_url: Option<unsafe extern "C" fn(url: *const c_char)>,
pub open_file: Option<unsafe extern "C" fn(file: *const c_char) -> bool>,
pub exe_path: Option<unsafe extern "C" fn(argv_0: *const c_char) -> *const c_char>,
pub execute: Option<unsafe extern "C" fn(command: *const c_char) -> c_int>,
pub execute_in_background: Option<unsafe extern "C" fn(command: *const c_char) -> c_int>,
pub execute_stdout: Option<unsafe extern "C" fn(command: *const c_char, timeout_ms: u32, ta: *mut TempAllocatorI, exit_code: *mut c_int) -> *mut c_char>,
}
Fields§
§open_url: Option<unsafe extern "C" fn(url: *const c_char)>
§open_file: Option<unsafe extern "C" fn(file: *const c_char) -> bool>
§exe_path: Option<unsafe extern "C" fn(argv_0: *const c_char) -> *const c_char>
§execute: Option<unsafe extern "C" fn(command: *const c_char) -> c_int>
§execute_in_background: Option<unsafe extern "C" fn(command: *const c_char) -> c_int>
§execute_stdout: Option<unsafe extern "C" fn(command: *const c_char, timeout_ms: u32, ta: *mut TempAllocatorI, exit_code: *mut c_int) -> *mut c_char>
Implementations§
Source§impl OsSystemApi
impl OsSystemApi
pub unsafe fn open_url(&self, url: *const c_char)
pub unsafe fn open_file(&self, file: *const c_char) -> bool
pub unsafe fn exe_path(&self, argv_0: *const c_char) -> *const c_char
pub unsafe fn execute(&self, command: *const c_char) -> c_int
pub unsafe fn execute_in_background(&self, command: *const c_char) -> c_int
pub unsafe fn execute_stdout( &self, command: *const c_char, timeout_ms: u32, ta: *mut TempAllocatorI, exit_code: *mut c_int, ) -> *mut c_char
Trait Implementations§
Source§impl Clone for OsSystemApi
impl Clone for OsSystemApi
Source§fn clone(&self) -> OsSystemApi
fn clone(&self) -> OsSystemApi
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 OsSystemApi
impl Default for OsSystemApi
Source§fn default() -> OsSystemApi
fn default() -> OsSystemApi
Returns the “default value” for a type. Read more
impl Copy for OsSystemApi
Auto Trait Implementations§
impl Freeze for OsSystemApi
impl RefUnwindSafe for OsSystemApi
impl Send for OsSystemApi
impl Sync for OsSystemApi
impl Unpin for OsSystemApi
impl UnwindSafe for OsSystemApi
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