pub enum SandboxNetwork {
Public,
None,
Allowlist {
allow: Vec<String>,
},
}Expand description
As JSON: {"mode": "public"}, {"mode": "none"}, or
{"mode": "allowlist", "allow": ["pypi.org", "*.github.com", "8.8.8.0/24"]}.
Variants§
Public
The internet, and none of its runner’s own, LAN, or link-local addresses.
None
Nothing outside the sandbox, not even a resolver.
Allowlist
The resolver; the internet addresses it gives each allowed name; and each address or network allowed, whatever it is.
Implementations§
Trait Implementations§
Source§impl Clone for SandboxNetwork
impl Clone for SandboxNetwork
Source§impl Debug for SandboxNetwork
impl Debug for SandboxNetwork
Source§impl Default for SandboxNetwork
impl Default for SandboxNetwork
Source§impl<'de> Deserialize<'de> for SandboxNetwork
impl<'de> Deserialize<'de> for SandboxNetwork
Source§fn 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
impl Eq for SandboxNetwork
Source§impl PartialEq for SandboxNetwork
impl PartialEq for SandboxNetwork
Source§impl Serialize for SandboxNetwork
impl Serialize for SandboxNetwork
impl StructuralPartialEq for SandboxNetwork
Auto Trait Implementations§
impl Forget for SandboxNetwork
impl Freeze for SandboxNetwork
impl Move for SandboxNetwork
impl RefUnwindSafe for SandboxNetwork
impl Send for SandboxNetworkwhere
RawVecInner: Send,
impl Sync for SandboxNetworkwhere
RawVecInner: Sync,
impl Unpin for SandboxNetwork
impl UnsafeUnpin for SandboxNetwork
impl UnwindSafe for SandboxNetworkwhere
RawVecInner: UnwindSafe,
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