Struct simics_api_sys::bindings::vmp_interface
source · #[repr(C)]pub struct vmp_interface {
pub class_has_support: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>,
pub host_support: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>,
pub compatible_config: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>,
pub enable: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>,
pub disable: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub enabled: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>,
pub set_threshold: Option<unsafe extern "C" fn(obj: *mut conf_object_t, threshold: c_int)>,
pub get_feature: Option<unsafe extern "C" fn(obj: *mut conf_object_t, feature: vmp_feature_t) -> bool>,
pub set_feature: Option<unsafe extern "C" fn(obj: *mut conf_object_t, feature: vmp_feature_t, val: bool) -> bool>,
pub get_info: Option<unsafe extern "C" fn(obj: *mut conf_object_t, info: vmp_info_t) -> uint64>,
}
Fields§
§class_has_support: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>
§host_support: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>
§compatible_config: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>
§enable: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>
§disable: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§enabled: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> bool>
§set_threshold: Option<unsafe extern "C" fn(obj: *mut conf_object_t, threshold: c_int)>
§get_feature: Option<unsafe extern "C" fn(obj: *mut conf_object_t, feature: vmp_feature_t) -> bool>
§set_feature: Option<unsafe extern "C" fn(obj: *mut conf_object_t, feature: vmp_feature_t, val: bool) -> bool>
§get_info: Option<unsafe extern "C" fn(obj: *mut conf_object_t, info: vmp_info_t) -> uint64>
Trait Implementations§
source§impl Clone for vmp_interface
impl Clone for vmp_interface
source§fn clone(&self) -> vmp_interface
fn clone(&self) -> vmp_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 vmp_interface
impl Debug for vmp_interface
source§impl Default for vmp_interface
impl Default for vmp_interface
source§fn default() -> vmp_interface
fn default() -> vmp_interface
Returns the “default value” for a type. Read more
source§impl Hash for vmp_interface
impl Hash for vmp_interface
source§impl Ord for vmp_interface
impl Ord for vmp_interface
source§fn cmp(&self, other: &vmp_interface) -> Ordering
fn cmp(&self, other: &vmp_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 vmp_interface
impl PartialEq for vmp_interface
source§impl PartialOrd for vmp_interface
impl PartialOrd for vmp_interface
impl Copy for vmp_interface
impl Eq for vmp_interface
impl StructuralPartialEq for vmp_interface
Auto Trait Implementations§
impl Freeze for vmp_interface
impl RefUnwindSafe for vmp_interface
impl Send for vmp_interface
impl Sync for vmp_interface
impl Unpin for vmp_interface
impl UnwindSafe for vmp_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
)