#[repr(C)]pub struct es_event_od_attribute_set_t {
pub instigator: ShouldNotBeNull<es_process_t>,
pub error_code: i32,
pub record_type: es_od_record_type_t,
pub record_name: es_string_token_t,
pub attribute_name: es_string_token_t,
pub attribute_value_count: usize,
pub attribute_value_array: *mut es_string_token_t,
pub node_name: es_string_token_t,
pub db_path: es_string_token_t,
}macos_14_0_0 only.Expand description
Notification that an attribute is being set.
This event type does not support caching (notify-only).
Attributes conceptually have the type Map String (Set String).
Each OD record has a Map of attribute name to Set of attribute value.
When an attribute value is added, it is inserted into the set of values for that name.
The new set of attribute values may be empty.
Fields§
§instigator: ShouldNotBeNull<es_process_t>Process that instigated operation (XPC caller).
error_code: i32Result code for the operation.
Values indicating specific failure reasons are defined in odconstants.h.
record_type: es_od_record_type_tThe type of the record for which the attribute is being set.
record_name: es_string_token_tThe name of the record for which the attribute is being set.
attribute_name: es_string_token_tThe name of the attribute that was set.
attribute_value_count: usizeThe size of attribute_value_array.
attribute_value_array: *mut es_string_token_tArray of attribute values that were set.
node_name: es_string_token_tOD node being mutated.
Typically one of “/Local/Default”, “/LDAPv3/
db_path: es_string_token_tOptional. If node_name is “/Local/Default”, this is, the path of the database against which OD is authenticating.
Implementations§
Source§impl es_event_od_attribute_set_t
Accessors for ShouldNotBeNull fields
impl es_event_od_attribute_set_t
Accessors for ShouldNotBeNull fields
Sourcepub unsafe fn instigator(&self) -> &es_process_t
pub unsafe fn instigator(&self) -> &es_process_t
Gives a references to the field while checking for null.
§Safety
See ShouldNotBeNull safety requirements.