pub enum RightDefinition<'a> {
FromDictionary(&'a CFDictionary<CFStringRef, CFTypeRef>),
FromExistingRight(&'a str),
}
Expand description
Used by Authorization::set_item
to define the rules of he right.
Variants§
FromDictionary(&'a CFDictionary<CFStringRef, CFTypeRef>)
The dictionary will contain the keys and values that define the rules.
FromExistingRight(&'a str)
The specified right’s rules will be duplicated.
Trait Implementations§
source§impl<'a> Clone for RightDefinition<'a>
impl<'a> Clone for RightDefinition<'a>
source§fn clone(&self) -> RightDefinition<'a>
fn clone(&self) -> RightDefinition<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'a> Copy for RightDefinition<'a>
Auto Trait Implementations§
impl<'a> Freeze for RightDefinition<'a>
impl<'a> RefUnwindSafe for RightDefinition<'a>
impl<'a> !Send for RightDefinition<'a>
impl<'a> !Sync for RightDefinition<'a>
impl<'a> Unpin for RightDefinition<'a>
impl<'a> UnwindSafe for RightDefinition<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)