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§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
)