Struct simics::api::interface::interfaces::CycleInterface
source · pub struct CycleInterface {
obj: *mut ConfObject,
interface: *mut cycle_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut cycle_interface
Implementations§
source§impl CycleInterface
impl CycleInterface
sourcepub fn get_cycle_count(&mut self) -> Result<cycles_t>
pub fn get_cycle_count(&mut self) -> Result<cycles_t>
Automatically generated method for the interface
sourcepub fn cycles_delta(&mut self, when: f64) -> Result<cycles_t>
pub fn cycles_delta(&mut self, when: f64) -> Result<cycles_t>
Automatically generated method for the interface
sourcepub fn get_frequency(&mut self) -> Result<uint64>
pub fn get_frequency(&mut self) -> Result<uint64>
Automatically generated method for the interface
sourcepub fn post_cycle(
&mut self,
evclass: *mut event_class_t,
obj: *mut conf_object_t,
cycles: cycles_t,
user_data: *mut lang_void,
) -> Result<()>
pub fn post_cycle( &mut self, evclass: *mut event_class_t, obj: *mut conf_object_t, cycles: cycles_t, user_data: *mut lang_void, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn post_time(
&mut self,
evclass: *mut event_class_t,
obj: *mut conf_object_t,
seconds: f64,
user_data: *mut lang_void,
) -> Result<()>
pub fn post_time( &mut self, evclass: *mut event_class_t, obj: *mut conf_object_t, seconds: f64, user_data: *mut lang_void, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn cancel(
&mut self,
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,
) -> Result<()>
pub fn cancel( &mut self, 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, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn find_next_cycle(
&mut self,
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,
) -> Result<cycles_t>
pub fn find_next_cycle( &mut self, 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, ) -> Result<cycles_t>
Automatically generated method for the interface
sourcepub fn find_next_time(
&mut self,
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,
) -> Result<f64>
pub fn find_next_time( &mut self, 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, ) -> Result<f64>
Automatically generated method for the interface
sourcepub fn get_time_in_ps(&mut self) -> Result<local_time_t>
pub fn get_time_in_ps(&mut self) -> Result<local_time_t>
Automatically generated method for the interface
sourcepub fn cycles_delta_from_ps(&mut self, when: local_time_t) -> Result<cycles_t>
pub fn cycles_delta_from_ps(&mut self, when: local_time_t) -> Result<cycles_t>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for CycleInterface
impl Interface for CycleInterface
source§type InternalInterface = cycle_interface
type InternalInterface = cycle_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for CycleInterface
impl RefUnwindSafe for CycleInterface
impl !Send for CycleInterface
impl !Sync for CycleInterface
impl Unpin for CycleInterface
impl UnwindSafe for CycleInterface
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