#[repr(C)]pub struct osa_tracker_state_admin_interface {
pub begin: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, initiator: *mut conf_object_t) -> transaction_id_t>,
pub end: Option<unsafe extern "C" fn(obj: *mut conf_object_t, txid: transaction_id_t)>,
pub add: Option<unsafe extern "C" fn(obj: *mut conf_object_t, entity_id: entity_id_t, attributes: attr_value_t)>,
pub remove: Option<unsafe extern "C" fn(obj: *mut conf_object_t, entity_id: entity_id_t)>,
pub remove_all: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub set_attribute: Option<unsafe extern "C" fn(obj: *mut conf_object_t, entity_id: entity_id_t, key: *const c_char, val: attr_value_t)>,
pub update: Option<unsafe extern "C" fn(obj: *mut conf_object_t, entity_id: entity_id_t, attributes: attr_value_t)>,
pub event: Option<unsafe extern "C" fn(obj: *mut conf_object_t, entity_id: entity_id_t, event_name: *const c_char, event_data: attr_value_t)>,
}
Fields§
§begin: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, initiator: *mut conf_object_t) -> transaction_id_t>
§end: Option<unsafe extern "C" fn(obj: *mut conf_object_t, txid: transaction_id_t)>
§add: Option<unsafe extern "C" fn(obj: *mut conf_object_t, entity_id: entity_id_t, attributes: attr_value_t)>
§remove: Option<unsafe extern "C" fn(obj: *mut conf_object_t, entity_id: entity_id_t)>
§remove_all: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§set_attribute: Option<unsafe extern "C" fn(obj: *mut conf_object_t, entity_id: entity_id_t, key: *const c_char, val: attr_value_t)>
§update: Option<unsafe extern "C" fn(obj: *mut conf_object_t, entity_id: entity_id_t, attributes: attr_value_t)>
§event: Option<unsafe extern "C" fn(obj: *mut conf_object_t, entity_id: entity_id_t, event_name: *const c_char, event_data: attr_value_t)>
Trait Implementations§
source§impl Clone for osa_tracker_state_admin_interface
impl Clone for osa_tracker_state_admin_interface
source§fn clone(&self) -> osa_tracker_state_admin_interface
fn clone(&self) -> osa_tracker_state_admin_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_tracker_state_admin_interface
impl Default for osa_tracker_state_admin_interface
source§fn default() -> osa_tracker_state_admin_interface
fn default() -> osa_tracker_state_admin_interface
Returns the “default value” for a type. Read more
source§impl Ord for osa_tracker_state_admin_interface
impl Ord for osa_tracker_state_admin_interface
source§fn cmp(&self, other: &osa_tracker_state_admin_interface) -> Ordering
fn cmp(&self, other: &osa_tracker_state_admin_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_tracker_state_admin_interface
impl PartialEq for osa_tracker_state_admin_interface
source§fn eq(&self, other: &osa_tracker_state_admin_interface) -> bool
fn eq(&self, other: &osa_tracker_state_admin_interface) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl PartialOrd for osa_tracker_state_admin_interface
impl PartialOrd for osa_tracker_state_admin_interface
impl Copy for osa_tracker_state_admin_interface
impl Eq for osa_tracker_state_admin_interface
impl StructuralPartialEq for osa_tracker_state_admin_interface
Auto Trait Implementations§
impl Freeze for osa_tracker_state_admin_interface
impl RefUnwindSafe for osa_tracker_state_admin_interface
impl Send for osa_tracker_state_admin_interface
impl Sync for osa_tracker_state_admin_interface
impl Unpin for osa_tracker_state_admin_interface
impl UnwindSafe for osa_tracker_state_admin_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
)