Struct simics_api_sys::bindings::cycle_interface
source · #[repr(C)]pub struct cycle_interface {Show 14 fields
pub get_cycle_count: Option<unsafe extern "C" fn(queue: *mut conf_object_t) -> cycles_t>,
pub get_time: Option<unsafe extern "C" fn(queue: *mut conf_object_t) -> f64>,
pub cycles_delta: Option<unsafe extern "C" fn(clock: *mut conf_object_t, when: f64) -> cycles_t>,
pub get_frequency: Option<unsafe extern "C" fn(queue: *mut conf_object_t) -> uint64>,
pub post_cycle: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, cycles: cycles_t, user_data: *mut lang_void)>,
pub post_time: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, seconds: f64, user_data: *mut lang_void)>,
pub cancel: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, pred: Option<unsafe extern "C" fn(data: *mut lang_void, match_data: *mut lang_void) -> c_int>, match_data: *mut lang_void)>,
pub find_next_cycle: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, pred: Option<unsafe extern "C" fn(data: *mut lang_void, match_data: *mut lang_void) -> c_int>, match_data: *mut lang_void) -> cycles_t>,
pub find_next_time: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, pred: Option<unsafe extern "C" fn(data: *mut lang_void, match_data: *mut lang_void) -> c_int>, match_data: *mut lang_void) -> f64>,
pub events: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> attr_value_t>,
pub get_time_in_ps: Option<unsafe extern "C" fn(queue: *mut conf_object_t) -> local_time_t>,
pub cycles_delta_from_ps: Option<unsafe extern "C" fn(clock: *mut conf_object_t, when: local_time_t) -> cycles_t>,
pub post_time_in_ps: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, picoseconds: duration_t, user_data: *mut lang_void)>,
pub find_next_time_in_ps: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, pred: Option<unsafe extern "C" fn(data: *mut lang_void, match_data: *mut lang_void) -> c_int>, match_data: *mut lang_void) -> duration_t>,
}
Fields§
§get_cycle_count: Option<unsafe extern "C" fn(queue: *mut conf_object_t) -> cycles_t>
§get_time: Option<unsafe extern "C" fn(queue: *mut conf_object_t) -> f64>
§cycles_delta: Option<unsafe extern "C" fn(clock: *mut conf_object_t, when: f64) -> cycles_t>
§get_frequency: Option<unsafe extern "C" fn(queue: *mut conf_object_t) -> uint64>
§post_cycle: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, cycles: cycles_t, user_data: *mut lang_void)>
§post_time: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, seconds: f64, user_data: *mut lang_void)>
§cancel: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, pred: Option<unsafe extern "C" fn(data: *mut lang_void, match_data: *mut lang_void) -> c_int>, match_data: *mut lang_void)>
§find_next_cycle: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, pred: Option<unsafe extern "C" fn(data: *mut lang_void, match_data: *mut lang_void) -> c_int>, match_data: *mut lang_void) -> cycles_t>
§find_next_time: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, pred: Option<unsafe extern "C" fn(data: *mut lang_void, match_data: *mut lang_void) -> c_int>, match_data: *mut lang_void) -> f64>
§events: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> attr_value_t>
§get_time_in_ps: Option<unsafe extern "C" fn(queue: *mut conf_object_t) -> local_time_t>
new picoseconds based functions
cycles_delta_from_ps: Option<unsafe extern "C" fn(clock: *mut conf_object_t, when: local_time_t) -> cycles_t>
§post_time_in_ps: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, picoseconds: duration_t, user_data: *mut lang_void)>
§find_next_time_in_ps: Option<unsafe extern "C" fn(queue: *mut conf_object_t, evclass: *mut event_class_t, obj: *mut conf_object_t, pred: Option<unsafe extern "C" fn(data: *mut lang_void, match_data: *mut lang_void) -> c_int>, match_data: *mut lang_void) -> duration_t>
Trait Implementations§
source§impl Clone for cycle_interface
impl Clone for cycle_interface
source§fn clone(&self) -> cycle_interface
fn clone(&self) -> cycle_interface
Returns a copy 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 cycle_interface
impl Debug for cycle_interface
source§impl Default for cycle_interface
impl Default for cycle_interface
source§fn default() -> cycle_interface
fn default() -> cycle_interface
Returns the “default value” for a type. Read more
source§impl Hash for cycle_interface
impl Hash for cycle_interface
source§impl Ord for cycle_interface
impl Ord for cycle_interface
source§fn cmp(&self, other: &cycle_interface) -> Ordering
fn cmp(&self, other: &cycle_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for cycle_interface
impl PartialEq for cycle_interface
source§impl PartialOrd for cycle_interface
impl PartialOrd for cycle_interface
impl Copy for cycle_interface
impl Eq for cycle_interface
impl StructuralPartialEq for cycle_interface
Auto Trait Implementations§
impl Freeze for cycle_interface
impl RefUnwindSafe for cycle_interface
impl Send for cycle_interface
impl Sync for cycle_interface
impl Unpin for cycle_interface
impl UnwindSafe for cycle_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)