Struct deno_runtime::permissions::Permissions [−][src]
pub struct Permissions {
pub read: UnaryPermission<ReadDescriptor>,
pub write: UnaryPermission<WriteDescriptor>,
pub net: UnaryPermission<NetDescriptor>,
pub env: UnaryPermission<EnvDescriptor>,
pub run: UnaryPermission<RunDescriptor>,
pub ffi: UnaryPermission<FfiDescriptor>,
pub hrtime: UnitPermission,
}
Fields
read: UnaryPermission<ReadDescriptor>
write: UnaryPermission<WriteDescriptor>
net: UnaryPermission<NetDescriptor>
env: UnaryPermission<EnvDescriptor>
run: UnaryPermission<RunDescriptor>
ffi: UnaryPermission<FfiDescriptor>
hrtime: UnitPermission
Implementations
pub fn new_read(
state: &Option<Vec<PathBuf>>,
prompt: bool
) -> UnaryPermission<ReadDescriptor>
pub fn new_write(
state: &Option<Vec<PathBuf>>,
prompt: bool
) -> UnaryPermission<WriteDescriptor>
A helper function that determines if the module specifier is a local or remote, and performs a read or net check for the specifier.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnwindSafe for Permissions
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more