Enum deno_runtime::permissions::PermissionState
source · pub enum PermissionState {
Granted,
Prompt,
Denied,
}
Expand description
Tri-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§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 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§
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.