pub struct AuthorizationOptions(/* private fields */);Available on macOS and crate feature
full only.Expand description
Mirrors Authorization Services option bits used with AuthorizationCreate.
Implementations§
Source§impl AuthorizationOptions
impl AuthorizationOptions
Sourcepub const INTERACTION_ALLOWED: Self
pub const INTERACTION_ALLOWED: Self
Mirrors an Authorization Services option bit.
Sourcepub const EXTEND_RIGHTS: Self
pub const EXTEND_RIGHTS: Self
Mirrors an Authorization Services option bit.
Sourcepub const PARTIAL_RIGHTS: Self
pub const PARTIAL_RIGHTS: Self
Mirrors an Authorization Services option bit.
Sourcepub const DESTROY_RIGHTS: Self
pub const DESTROY_RIGHTS: Self
Mirrors an Authorization Services option bit.
Sourcepub const PREAUTHORIZE: Self
pub const PREAUTHORIZE: Self
Mirrors an Authorization Services option bit.
Sourcepub const SKIP_INTERNAL_AUTH: Self
pub const SKIP_INTERNAL_AUTH: Self
Mirrors an Authorization Services option bit.
pub const fn empty() -> Self
pub const fn all() -> Self
pub const fn bits(self) -> u32
pub const fn from_bits(bits: u32) -> Option<Self>
pub const fn from_bits_retain(bits: u32) -> Self
pub const fn from_bits_truncate(bits: u32) -> Self
pub const fn is_empty(self) -> bool
pub const fn is_all(self) -> bool
pub const fn contains(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
pub const fn union(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
pub const fn complement(self) -> Self
pub fn insert(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
pub fn set(&mut self, other: Self, value: bool)
Trait Implementations§
Source§impl BitAnd for AuthorizationOptions
impl BitAnd for AuthorizationOptions
Source§impl BitAndAssign for AuthorizationOptions
impl BitAndAssign for AuthorizationOptions
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for AuthorizationOptions
impl BitOr for AuthorizationOptions
Source§impl BitOrAssign for AuthorizationOptions
impl BitOrAssign for AuthorizationOptions
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for AuthorizationOptions
impl BitXor for AuthorizationOptions
Source§impl BitXorAssign for AuthorizationOptions
impl BitXorAssign for AuthorizationOptions
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for AuthorizationOptions
impl Clone for AuthorizationOptions
impl Copy for AuthorizationOptions
Source§impl Debug for AuthorizationOptions
impl Debug for AuthorizationOptions
impl Eq for AuthorizationOptions
Source§impl Hash for AuthorizationOptions
impl Hash for AuthorizationOptions
Source§impl Not for AuthorizationOptions
impl Not for AuthorizationOptions
Source§impl PartialEq for AuthorizationOptions
impl PartialEq for AuthorizationOptions
impl StructuralPartialEq for AuthorizationOptions
Source§impl Sub for AuthorizationOptions
impl Sub for AuthorizationOptions
Source§impl SubAssign for AuthorizationOptions
impl SubAssign for AuthorizationOptions
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for AuthorizationOptions
impl RefUnwindSafe for AuthorizationOptions
impl Send for AuthorizationOptions
impl Sync for AuthorizationOptions
impl Unpin for AuthorizationOptions
impl UnsafeUnpin for AuthorizationOptions
impl UnwindSafe for AuthorizationOptions
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