Struct EventOdAttributeSet

Source
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>

Source

pub fn instigator(&self) -> Process<'a>

Process that instigated operation (XPC caller).

Source

pub fn error_code(&self) -> i32

Result code for the operation.

Source

pub fn record_type(&self) -> es_od_record_type_t

The type of the record for which the attribute is being set.

Source

pub fn record_name(&self) -> &'a OsStr

The name of the record for which the attribute is being set.

Source

pub fn attribute_name(&self) -> &'a OsStr

The name of the attribute that was set.

Source

pub fn attribute_value_count(&self) -> usize

The size of attribute_value_array.

Source

pub fn attribute_values<'s>(&'s self) -> AttributeValues<'s, 'a>

Iterator over the attribute values that were set.

Source

pub fn node_name(&self) -> &'a OsStr

OD node being mutated.

Typically one of “/Local/Default”, “/LDAPv3/” or “/Active Directory/”.

Source

pub fn db_path(&self) -> Option<&'a OsStr>

Optional. If node_name is “/Local/Default”, this is, the path of the database against which OD is authenticating.

Trait Implementations§

Source§

impl<'a> Debug for EventOdAttributeSet<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Hash for EventOdAttributeSet<'a>

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'a> PartialEq for EventOdAttributeSet<'a>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Eq for EventOdAttributeSet<'a>

Source§

impl Send for EventOdAttributeSet<'_>

Source§

impl Sync for EventOdAttributeSet<'_>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,