pub struct EventOdAttributeSet<'a> { /* private fields */ }
Available on crate feature
macos_14_0_0
and macOS only.Expand description
Notification that an attribute is being set.
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.
Implementations§
Source§impl<'a> EventOdAttributeSet<'a>
impl<'a> EventOdAttributeSet<'a>
Sourcepub fn instigator(&self) -> Process<'a>
pub fn instigator(&self) -> Process<'a>
Process that instigated operation (XPC caller).
Sourcepub fn error_code(&self) -> i32
pub fn error_code(&self) -> i32
Result code for the operation.
Sourcepub fn record_type(&self) -> es_od_record_type_t
pub fn record_type(&self) -> es_od_record_type_t
The type of the record for which the attribute is being set.
Sourcepub fn record_name(&self) -> &'a OsStr
pub fn record_name(&self) -> &'a OsStr
The name of the record for which the attribute is being set.
Sourcepub fn attribute_name(&self) -> &'a OsStr
pub fn attribute_name(&self) -> &'a OsStr
The name of the attribute that was set.
Sourcepub fn attribute_value_count(&self) -> usize
pub fn attribute_value_count(&self) -> usize
The size of attribute_value_array.
Sourcepub fn attribute_values<'s>(&'s self) -> AttributeValues<'s, 'a> ⓘ
pub fn attribute_values<'s>(&'s self) -> AttributeValues<'s, 'a> ⓘ
Iterator over the attribute values that were set.
Trait Implementations§
Source§impl<'a> Debug for EventOdAttributeSet<'a>
impl<'a> Debug for EventOdAttributeSet<'a>
Source§impl<'a> Hash for EventOdAttributeSet<'a>
impl<'a> Hash for EventOdAttributeSet<'a>
Source§impl<'a> PartialEq for EventOdAttributeSet<'a>
impl<'a> PartialEq for EventOdAttributeSet<'a>
impl<'a> Eq for EventOdAttributeSet<'a>
impl Send for EventOdAttributeSet<'_>
impl Sync for EventOdAttributeSet<'_>
Auto Trait Implementations§
impl<'a> Freeze for EventOdAttributeSet<'a>
impl<'a> RefUnwindSafe for EventOdAttributeSet<'a>
impl<'a> Unpin for EventOdAttributeSet<'a>
impl<'a> UnwindSafe for EventOdAttributeSet<'a>
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