#[repr(C)]pub struct H_HANDLE_TYPE {
pub type_id: INT4_8,
pub sem_type: *const c_char,
pub cb_serialize: HHandleSerializeFunc,
pub cb_deserialize: HHandleDeserializeFunc,
pub header: *const c_char,
pub cb_clear: HHandleDestructorFunc,
pub cb_signal: HHandleSignalFunc,
pub list: *mut HhandleListT,
}Expand description
/ /** HHandleInfo holds handle type information.
This structure exists once per handle type (usually per sem_type). It contains basic, static, constant information about that type. Most notably, it contains pointers to the functions that operate on the handles (clear, serialize, deserialize and signal).
Handles (instances) of types where the cb_signal callback is not NULL are stored in a list that allows calling the signal callback for each of them.
All serialized items must have a unique header, usually a string, that identifies them. ‘header’ contains a pointer to that header, allowing other functions to identify a serialized item based on its header. If no (de)serialization function is set, header must be NULL.
\ingroup data_structures_handles
Fields§
§type_id: INT4_8< Type ID
sem_type: *const c_char< sem_type of the handle
cb_serialize: HHandleSerializeFunc< Serialize this handle type
cb_deserialize: HHandleDeserializeFunc< Deserialize this handle type
header: *const c_char< Serialization header
cb_clear: HHandleDestructorFunc< Clear this handle type
cb_signal: HHandleSignalFunc< Signal (for semaphores etc.)
list: *mut HhandleListT< List of handles, or NULL
Trait Implementations§
Source§impl Clone for H_HANDLE_TYPE
impl Clone for H_HANDLE_TYPE
Source§fn clone(&self) -> H_HANDLE_TYPE
fn clone(&self) -> H_HANDLE_TYPE
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more