Struct simics::api::interface::interfaces::OsaNodeTreeNotificationInterface
source · pub struct OsaNodeTreeNotificationInterface {
obj: *mut ConfObject,
interface: *mut osa_node_tree_notification_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut osa_node_tree_notification_interface
Implementations§
source§impl OsaNodeTreeNotificationInterface
impl OsaNodeTreeNotificationInterface
sourcepub fn notify_create(
&mut self,
node_id: node_id_t,
recursive: bool,
cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_id: node_id_t)>,
data: cbdata_register_t,
) -> Result<cancel_id_t>
pub fn notify_create( &mut self, node_id: node_id_t, recursive: bool, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_id: node_id_t)>, data: cbdata_register_t, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_destroy(
&mut self,
node_id: node_id_t,
recursive: bool,
cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_id: node_id_t)>,
data: cbdata_register_t,
) -> Result<cancel_id_t>
pub fn notify_destroy( &mut self, node_id: node_id_t, recursive: bool, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_id: node_id_t)>, data: cbdata_register_t, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_property_change(
&mut self,
node_id: node_id_t,
key: *const c_char,
recursive: bool,
cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_id: node_id_t, key: *const c_char, old_val: attr_value_t, new_val: attr_value_t)>,
data: cbdata_register_t,
) -> Result<cancel_id_t>
pub fn notify_property_change( &mut self, node_id: node_id_t, key: *const c_char, recursive: bool, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_id: node_id_t, key: *const c_char, old_val: attr_value_t, new_val: attr_value_t)>, data: cbdata_register_t, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_cpu_move_from(
&mut self,
node_id: node_id_t,
cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_path: attr_value_t)>,
data: cbdata_register_t,
) -> Result<cancel_id_t>
pub fn notify_cpu_move_from( &mut self, node_id: node_id_t, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_path: attr_value_t)>, data: cbdata_register_t, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_cpu_move_to(
&mut self,
node_id: node_id_t,
cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_path: attr_value_t)>,
data: cbdata_register_t,
) -> Result<cancel_id_t>
pub fn notify_cpu_move_to( &mut self, node_id: node_id_t, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_path: attr_value_t)>, data: cbdata_register_t, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_event(
&mut self,
node_id: node_id_t,
event_name: *const c_char,
recursive: bool,
cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_id: node_id_t, event_name: *const c_char, event_data: attr_value_t)>,
data: cbdata_register_t,
) -> Result<cancel_id_t>
pub fn notify_event( &mut self, node_id: node_id_t, event_name: *const c_char, recursive: bool, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t, cpu: *mut conf_object_t, node_id: node_id_t, event_name: *const c_char, event_data: attr_value_t)>, data: cbdata_register_t, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_enable(
&mut self,
cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t)>,
data: cbdata_register_t,
) -> Result<cancel_id_t>
pub fn notify_enable( &mut self, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t)>, data: cbdata_register_t, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_disable(
&mut self,
cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t)>,
data: cbdata_register_t,
) -> Result<cancel_id_t>
pub fn notify_disable( &mut self, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t)>, data: cbdata_register_t, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn cancel_notify(&mut self, cancel_id: cancel_id_t) -> Result<()>
pub fn cancel_notify(&mut self, cancel_id: cancel_id_t) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for OsaNodeTreeNotificationInterface
impl Interface for OsaNodeTreeNotificationInterface
source§const NAME: &'static [u8] = crate::api::sys::OSA_NODE_TREE_NOTIFICATION_INTERFACE
const NAME: &'static [u8] = crate::api::sys::OSA_NODE_TREE_NOTIFICATION_INTERFACE
The name of the interface
source§type InternalInterface = osa_node_tree_notification_interface
type InternalInterface = osa_node_tree_notification_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 OsaNodeTreeNotificationInterface
impl RefUnwindSafe for OsaNodeTreeNotificationInterface
impl !Send for OsaNodeTreeNotificationInterface
impl !Sync for OsaNodeTreeNotificationInterface
impl Unpin for OsaNodeTreeNotificationInterface
impl UnwindSafe for OsaNodeTreeNotificationInterface
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