Struct simics::api::interface::interfaces::SaveStateInterface
source · pub struct SaveStateInterface {
obj: *mut ConfObject,
interface: *mut save_state_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut save_state_interface
Implementations§
source§impl SaveStateInterface
impl SaveStateInterface
sourcepub fn get_version(&mut self, obj: *mut conf_object) -> Result<c_int>
pub fn get_version(&mut self, obj: *mut conf_object) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn get_size(
&mut self,
obj: *mut conf_object,
stype: state_save_kind_t,
) -> Result<c_int>
pub fn get_size( &mut self, obj: *mut conf_object, stype: state_save_kind_t, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn get_align(
&mut self,
obj: *mut conf_object,
stype: state_save_kind_t,
) -> Result<c_int>
pub fn get_align( &mut self, obj: *mut conf_object, stype: state_save_kind_t, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn save_state(
&mut self,
obj: *mut conf_object,
stype: state_save_kind_t,
dest: *mut c_void,
) -> Result<c_int>
pub fn save_state( &mut self, obj: *mut conf_object, stype: state_save_kind_t, dest: *mut c_void, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn load_state(
&mut self,
obj: *mut conf_object,
stype: state_save_kind_t,
src: *mut c_void,
) -> Result<c_int>
pub fn load_state( &mut self, obj: *mut conf_object, stype: state_save_kind_t, src: *mut c_void, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn compare_state(
&mut self,
obj: *mut conf_object,
stype: state_save_kind_t,
src: *mut c_void,
) -> Result<c_int>
pub fn compare_state( &mut self, obj: *mut conf_object, stype: state_save_kind_t, src: *mut c_void, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn print_state(
&mut self,
obj: *mut conf_object,
stype: state_save_kind_t,
src: *mut c_void,
symnames: c_int,
diff: c_int,
) -> Result<c_int>
pub fn print_state( &mut self, obj: *mut conf_object, stype: state_save_kind_t, src: *mut c_void, symnames: c_int, diff: c_int, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn save_state_he(
&mut self,
obj: *mut conf_object,
stype: state_save_kind_t,
dest: *mut c_void,
) -> Result<c_int>
pub fn save_state_he( &mut self, obj: *mut conf_object, stype: state_save_kind_t, dest: *mut c_void, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn load_state_he(
&mut self,
obj: *mut conf_object,
stype: state_save_kind_t,
src: *mut c_void,
) -> Result<c_int>
pub fn load_state_he( &mut self, obj: *mut conf_object, stype: state_save_kind_t, src: *mut c_void, ) -> Result<c_int>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for SaveStateInterface
impl Interface for SaveStateInterface
source§type InternalInterface = save_state_interface
type InternalInterface = save_state_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 SaveStateInterface
impl RefUnwindSafe for SaveStateInterface
impl !Send for SaveStateInterface
impl !Sync for SaveStateInterface
impl Unpin for SaveStateInterface
impl UnwindSafe for SaveStateInterface
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