#[repr(C)]pub struct target_controller {Show 16 fields
pub destroy_callback: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, target: *mut target_s)>,
pub printf: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fmt: *const c_char, arg2: *mut __va_list_tag)>,
pub open: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, path: target_addr_t, path_len: usize, flags: target_open_flags_e, mode: mode_t) -> c_int>,
pub close: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int) -> c_int>,
pub read: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int, buf: target_addr_t, count: c_uint) -> c_int>,
pub write: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int, buf: target_addr_t, count: c_uint) -> c_int>,
pub lseek: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int, offset: c_long, flag: target_seek_flag_e) -> c_long>,
pub rename: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, oldpath: target_addr_t, old_len: usize, newpath: target_addr_t, new_len: usize) -> c_int>,
pub unlink: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, path: target_addr_t, path_len: usize) -> c_int>,
pub stat: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, path: target_addr_t, path_len: usize, buf: target_addr_t) -> c_int>,
pub fstat: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int, buf: target_addr_t) -> c_int>,
pub gettimeofday: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, tv: target_addr_t, tz: target_addr_t) -> c_int>,
pub isatty: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int) -> c_int>,
pub system: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, cmd: target_addr_t, cmd_len: usize) -> c_int>,
pub errno_: target_errno_e,
pub interrupted: bool,
}Fields§
§destroy_callback: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, target: *mut target_s)>§printf: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fmt: *const c_char, arg2: *mut __va_list_tag)>§open: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, path: target_addr_t, path_len: usize, flags: target_open_flags_e, mode: mode_t) -> c_int>§close: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int) -> c_int>§read: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int, buf: target_addr_t, count: c_uint) -> c_int>§write: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int, buf: target_addr_t, count: c_uint) -> c_int>§lseek: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int, offset: c_long, flag: target_seek_flag_e) -> c_long>§rename: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, oldpath: target_addr_t, old_len: usize, newpath: target_addr_t, new_len: usize) -> c_int>§unlink: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, path: target_addr_t, path_len: usize) -> c_int>§stat: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, path: target_addr_t, path_len: usize, buf: target_addr_t) -> c_int>§fstat: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int, buf: target_addr_t) -> c_int>§gettimeofday: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, tv: target_addr_t, tz: target_addr_t) -> c_int>§isatty: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, fd: c_int) -> c_int>§system: Option<unsafe extern "C" fn(arg1: *mut target_controller_s, cmd: target_addr_t, cmd_len: usize) -> c_int>§errno_: target_errno_e§interrupted: boolTrait Implementations§
Source§impl Clone for target_controller
impl Clone for target_controller
Source§fn clone(&self) -> target_controller
fn clone(&self) -> target_controller
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 Debug for target_controller
impl Debug for target_controller
impl Copy for target_controller
Auto Trait Implementations§
impl Freeze for target_controller
impl RefUnwindSafe for target_controller
impl Send for target_controller
impl Sync for target_controller
impl Unpin for target_controller
impl UnwindSafe for target_controller
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