#[repr(C)]pub struct osa_node_tree_notification_interface {
pub notify_create: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>,
pub notify_destroy: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>,
pub notify_property_change: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>,
pub notify_cpu_move_from: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>,
pub notify_cpu_move_to: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>,
pub notify_event: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>,
pub notify_enable: Option<unsafe extern "C" fn(obj: *mut conf_object_t, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t)>, data: cbdata_register_t) -> cancel_id_t>,
pub notify_disable: Option<unsafe extern "C" fn(obj: *mut conf_object_t, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t)>, data: cbdata_register_t) -> cancel_id_t>,
pub cancel_notify: Option<unsafe extern "C" fn(obj: *mut conf_object_t, cancel_id: cancel_id_t)>,
pub notify_callbacks_done: Option<unsafe extern "C" fn(obj: *mut conf_object_t, node_id: uint64, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t)>, data: cbdata_register_t) -> cancel_id_t>,
}
Fields§
§notify_create: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>
§notify_destroy: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>
§notify_property_change: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>
§notify_cpu_move_from: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>
§notify_cpu_move_to: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>
§notify_event: Option<unsafe extern "C" fn(obj: *mut conf_object_t, 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) -> cancel_id_t>
§notify_enable: Option<unsafe extern "C" fn(obj: *mut conf_object_t, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t)>, data: cbdata_register_t) -> cancel_id_t>
§notify_disable: Option<unsafe extern "C" fn(obj: *mut conf_object_t, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t)>, data: cbdata_register_t) -> cancel_id_t>
§cancel_notify: Option<unsafe extern "C" fn(obj: *mut conf_object_t, cancel_id: cancel_id_t)>
§notify_callbacks_done: Option<unsafe extern "C" fn(obj: *mut conf_object_t, node_id: uint64, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, obj: *mut conf_object_t)>, data: cbdata_register_t) -> cancel_id_t>
Trait Implementations§
source§impl Clone for osa_node_tree_notification_interface
impl Clone for osa_node_tree_notification_interface
source§fn clone(&self) -> osa_node_tree_notification_interface
fn clone(&self) -> osa_node_tree_notification_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 Default for osa_node_tree_notification_interface
impl Default for osa_node_tree_notification_interface
source§fn default() -> osa_node_tree_notification_interface
fn default() -> osa_node_tree_notification_interface
Returns the “default value” for a type. Read more
source§impl Ord for osa_node_tree_notification_interface
impl Ord for osa_node_tree_notification_interface
source§fn cmp(&self, other: &osa_node_tree_notification_interface) -> Ordering
fn cmp(&self, other: &osa_node_tree_notification_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 osa_node_tree_notification_interface
impl PartialEq for osa_node_tree_notification_interface
source§fn eq(&self, other: &osa_node_tree_notification_interface) -> bool
fn eq(&self, other: &osa_node_tree_notification_interface) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl PartialOrd for osa_node_tree_notification_interface
impl PartialOrd for osa_node_tree_notification_interface
impl Copy for osa_node_tree_notification_interface
impl Eq for osa_node_tree_notification_interface
impl StructuralPartialEq for osa_node_tree_notification_interface
Auto Trait Implementations§
impl Freeze for osa_node_tree_notification_interface
impl RefUnwindSafe for osa_node_tree_notification_interface
impl Send for osa_node_tree_notification_interface
impl Sync for osa_node_tree_notification_interface
impl Unpin for osa_node_tree_notification_interface
impl UnwindSafe for osa_node_tree_notification_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
)