pub enum SandboxPreset {
ReadOnly,
WorkspaceWrite {
writable_roots: Vec<String>,
network_access: bool,
},
DangerFullAccess,
ExternalSandbox {
network_access: ExternalNetworkAccess,
},
}Variants§
ReadOnly
WorkspaceWrite
DangerFullAccess
ExternalSandbox
Fields
§
network_access: ExternalNetworkAccessImplementations§
Source§impl SandboxPreset
impl SandboxPreset
pub fn as_type_wire(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SandboxPreset
impl Clone for SandboxPreset
Source§fn clone(&self) -> SandboxPreset
fn clone(&self) -> SandboxPreset
Returns a duplicate 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 SandboxPreset
impl Debug for SandboxPreset
Source§impl PartialEq for SandboxPreset
impl PartialEq for SandboxPreset
impl Eq for SandboxPreset
impl StructuralPartialEq for SandboxPreset
Auto Trait Implementations§
impl Freeze for SandboxPreset
impl RefUnwindSafe for SandboxPreset
impl Send for SandboxPreset
impl Sync for SandboxPreset
impl Unpin for SandboxPreset
impl UnsafeUnpin for SandboxPreset
impl UnwindSafe for SandboxPreset
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