pub enum IncludePolicy {
Unrestricted,
SandboxedToBase,
Deny,
}Expand description
Policy for copy "file" filesystem includes. The default matches the CLI:
full access, absolute paths allowed. Embedders compiling untrusted source
should pick a restrictive policy. The embedded copy "circuits" library
is always available — it never touches the filesystem.
Variants§
Unrestricted
Resolve like the CLI: absolute paths allowed, no fence. (Default.)
SandboxedToBase
Only files inside the base directory (canonicalized prefix check, so
.. and symlink escapes are rejected); absolute paths are errors.
Deny
No filesystem includes at all (the wasm behavior everywhere).
Trait Implementations§
Source§impl Clone for IncludePolicy
impl Clone for IncludePolicy
Source§fn clone(&self) -> IncludePolicy
fn clone(&self) -> IncludePolicy
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 moreimpl Copy for IncludePolicy
Source§impl Debug for IncludePolicy
impl Debug for IncludePolicy
Source§impl Default for IncludePolicy
impl Default for IncludePolicy
Source§fn default() -> IncludePolicy
fn default() -> IncludePolicy
Returns the “default value” for a type. Read more
impl Eq for IncludePolicy
Source§impl PartialEq for IncludePolicy
impl PartialEq for IncludePolicy
Source§fn eq(&self, other: &IncludePolicy) -> bool
fn eq(&self, other: &IncludePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IncludePolicy
Auto Trait Implementations§
impl Freeze for IncludePolicy
impl RefUnwindSafe for IncludePolicy
impl Send for IncludePolicy
impl Sync for IncludePolicy
impl Unpin for IncludePolicy
impl UnsafeUnpin for IncludePolicy
impl UnwindSafe for IncludePolicy
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