Struct simics_api_sys::bindings::image_interface
source · #[repr(C)]pub struct image_interface {
pub read: Option<unsafe extern "C" fn(img: *mut conf_object_t, to_buf: *mut c_void, start: uint64, length: usize)>,
pub write: Option<unsafe extern "C" fn(img: *mut conf_object_t, from_buf: *const c_void, start: uint64, length: usize)>,
pub for_all_spages: Option<unsafe extern "C" fn(img: *mut conf_object_t, f: Option<unsafe extern "C" fn(p: *mut image_spage_t, ofs: uint64, arg: *mut c_void) -> c_int>, arg: *mut c_void) -> c_int>,
pub set_persistent: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub save_to_file: Option<unsafe extern "C" fn(obj: *mut conf_object_t, file: *const c_char, start: uint64, length: uint64)>,
pub save_diff: Option<unsafe extern "C" fn(obj: *mut conf_object_t, file: *const c_char)>,
pub clear_range: Option<unsafe extern "C" fn(obj: *mut conf_object_t, start: uint64, length: uint64)>,
pub fill: Option<unsafe extern "C" fn(obj: *mut conf_object_t, start: uint64, length: uint64, value: uint8)>,
pub size: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> uint64>,
pub set: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ofs: uint64, b: bytes_t)>,
pub get: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ofs: uint64, size: usize) -> bytes_t>,
pub flush_writable: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
}
Fields§
§read: Option<unsafe extern "C" fn(img: *mut conf_object_t, to_buf: *mut c_void, start: uint64, length: usize)>
§write: Option<unsafe extern "C" fn(img: *mut conf_object_t, from_buf: *const c_void, start: uint64, length: usize)>
§for_all_spages: Option<unsafe extern "C" fn(img: *mut conf_object_t, f: Option<unsafe extern "C" fn(p: *mut image_spage_t, ofs: uint64, arg: *mut c_void) -> c_int>, arg: *mut c_void) -> c_int>
§set_persistent: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§save_to_file: Option<unsafe extern "C" fn(obj: *mut conf_object_t, file: *const c_char, start: uint64, length: uint64)>
§save_diff: Option<unsafe extern "C" fn(obj: *mut conf_object_t, file: *const c_char)>
§clear_range: Option<unsafe extern "C" fn(obj: *mut conf_object_t, start: uint64, length: uint64)>
§fill: Option<unsafe extern "C" fn(obj: *mut conf_object_t, start: uint64, length: uint64, value: uint8)>
§size: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> uint64>
§set: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ofs: uint64, b: bytes_t)>
§get: Option<unsafe extern "C" fn(obj: *mut conf_object_t, ofs: uint64, size: usize) -> bytes_t>
§flush_writable: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
Trait Implementations§
source§impl Clone for image_interface
impl Clone for image_interface
source§fn clone(&self) -> image_interface
fn clone(&self) -> image_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 image_interface
impl Debug for image_interface
source§impl Default for image_interface
impl Default for image_interface
source§fn default() -> image_interface
fn default() -> image_interface
Returns the “default value” for a type. Read more
source§impl Hash for image_interface
impl Hash for image_interface
source§impl Ord for image_interface
impl Ord for image_interface
source§fn cmp(&self, other: &image_interface) -> Ordering
fn cmp(&self, other: &image_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 image_interface
impl PartialEq for image_interface
source§impl PartialOrd for image_interface
impl PartialOrd for image_interface
impl Copy for image_interface
impl Eq for image_interface
impl StructuralPartialEq for image_interface
Auto Trait Implementations§
impl Freeze for image_interface
impl RefUnwindSafe for image_interface
impl Send for image_interface
impl Sync for image_interface
impl Unpin for image_interface
impl UnwindSafe for image_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
)