Struct machinery_api::foundation::OsSystemApi[][src]

#[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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.