Enum deno_runtime::permissions::PermissionState
source · [−]pub enum PermissionState {
Granted,
Prompt,
Denied,
}
Expand description
Tri-state value for storing permission state
Variants
Granted
Prompt
Denied
Trait Implementations
sourceimpl Clone for PermissionState
impl Clone for PermissionState
sourcefn clone(&self) -> PermissionState
fn clone(&self) -> PermissionState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PermissionState
impl Debug for PermissionState
sourceimpl Default for PermissionState
impl Default for PermissionState
sourceimpl<'de> Deserialize<'de> for PermissionState
impl<'de> Deserialize<'de> for PermissionState
sourcefn 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
sourceimpl Display for PermissionState
impl Display for PermissionState
sourceimpl PartialEq<PermissionState> for PermissionState
impl PartialEq<PermissionState> for PermissionState
sourcefn eq(&self, other: &PermissionState) -> bool
fn eq(&self, other: &PermissionState) -> bool
sourceimpl PartialOrd<PermissionState> for PermissionState
impl PartialOrd<PermissionState> for PermissionState
sourcefn partial_cmp(&self, other: &PermissionState) -> Option<Ordering>
fn partial_cmp(&self, other: &PermissionState) -> Option<Ordering>
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.