#[repr(transparent)]pub struct LARightState(pub NSInteger);
Available on crate feature
LARight
only.Expand description
Each of the different states of a right
See also Apple’s documentation
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl LARightState
impl LARightState
Sourcepub const Unknown: Self
pub const Unknown: Self
Right has not been evaluated yet.
This is the initial state of
LARight
and changes when
authorize
method is called.
Sourcepub const Authorizing: Self
pub const Authorizing: Self
Requirements are currently being evaluated.
This happens after calling
authorize
method but before the user has granted the right.
Sourcepub const Authorized: Self
pub const Authorized: Self
Authorization was granted
This can be achieved by succesful authorization.
Sourcepub const NotAuthorized: Self
pub const NotAuthorized: Self
Authorization was rejected.
This can be caused by several reasons. For example requirements were not satisified or user rejects to authorize.
Trait Implementations§
Source§impl Clone for LARightState
impl Clone for LARightState
Source§fn clone(&self) -> LARightState
fn clone(&self) -> LARightState
Returns a duplicate 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 moreSource§impl Debug for LARightState
impl Debug for LARightState
Source§impl Encode for LARightState
impl Encode for LARightState
Source§impl Hash for LARightState
impl Hash for LARightState
Source§impl Ord for LARightState
impl Ord for LARightState
Source§fn cmp(&self, other: &LARightState) -> Ordering
fn cmp(&self, other: &LARightState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LARightState
impl PartialEq for LARightState
Source§impl PartialOrd for LARightState
impl PartialOrd for LARightState
Source§impl RefEncode for LARightState
impl RefEncode for LARightState
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for LARightState
impl Eq for LARightState
impl StructuralPartialEq for LARightState
Auto Trait Implementations§
impl Freeze for LARightState
impl RefUnwindSafe for LARightState
impl Send for LARightState
impl Sync for LARightState
impl Unpin for LARightState
impl UnwindSafe for LARightState
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§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.