pub enum DenoPermission {
Read,
Write,
Net,
Env,
Run,
Ffi,
Sys,
}Expand description
Deno permission labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DenoPermission
impl Clone for DenoPermission
Source§fn clone(&self) -> DenoPermission
fn clone(&self) -> DenoPermission
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DenoPermission
impl Debug for DenoPermission
Source§impl Display for DenoPermission
impl Display for DenoPermission
Source§impl FromStr for DenoPermission
impl FromStr for DenoPermission
Source§type Err = DenoPermissionParseError
type Err = DenoPermissionParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<DenoPermission, <DenoPermission as FromStr>::Err>
fn from_str( input: &str, ) -> Result<DenoPermission, <DenoPermission as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for DenoPermission
impl Hash for DenoPermission
Source§impl Ord for DenoPermission
impl Ord for DenoPermission
Source§fn cmp(&self, other: &DenoPermission) -> Ordering
fn cmp(&self, other: &DenoPermission) -> Ordering
1.21.0 (const: unstable) · 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 DenoPermission
impl PartialEq for DenoPermission
Source§fn eq(&self, other: &DenoPermission) -> bool
fn eq(&self, other: &DenoPermission) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DenoPermission
impl PartialOrd for DenoPermission
impl Copy for DenoPermission
impl Eq for DenoPermission
impl StructuralPartialEq for DenoPermission
Auto Trait Implementations§
impl Freeze for DenoPermission
impl RefUnwindSafe for DenoPermission
impl Send for DenoPermission
impl Sync for DenoPermission
impl Unpin for DenoPermission
impl UnsafeUnpin for DenoPermission
impl UnwindSafe for DenoPermission
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