Enum deno_runtime::permissions::PermissionState
source · pub enum PermissionState {
Granted,
GrantedPartial,
Prompt,
Denied,
}
Expand description
Quadri-state value for storing permission state
Variants§
Trait Implementations§
source§impl Clone for PermissionState
impl Clone for PermissionState
source§fn clone(&self) -> PermissionState
fn clone(&self) -> PermissionState
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 moresource§impl Debug for PermissionState
impl Debug for PermissionState
source§impl Default for PermissionState
impl Default for PermissionState
source§fn default() -> PermissionState
fn default() -> PermissionState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PermissionState
impl<'de> Deserialize<'de> for PermissionState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PermissionState
impl Display for PermissionState
source§impl From<PermissionState> for PermissionStatus
impl From<PermissionState> for PermissionStatus
source§fn from(state: PermissionState) -> Self
fn from(state: PermissionState) -> Self
Converts to this type from the input type.
source§impl PartialEq<PermissionState> for PermissionState
impl PartialEq<PermissionState> for PermissionState
source§fn eq(&self, other: &PermissionState) -> bool
fn eq(&self, other: &PermissionState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PermissionState> for PermissionState
impl PartialOrd<PermissionState> for PermissionState
source§fn partial_cmp(&self, other: &PermissionState) -> Option<Ordering>
fn partial_cmp(&self, other: &PermissionState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PermissionState
impl Eq for PermissionState
impl StructuralEq for PermissionState
impl StructuralPartialEq for PermissionState
Auto Trait Implementations§
impl RefUnwindSafe for PermissionState
impl Send for PermissionState
impl Sync for PermissionState
impl Unpin for PermissionState
impl UnwindSafe for PermissionState
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.