pub enum SandboxLevel {
Strict,
Partial {
allowed_domains: Vec<String>,
allowed_dirs: Vec<String>,
},
Trusted,
}Expand description
The sandbox level required by the extension.
Variants§
Strict
Strict sandbox: no network, no filesystem (except via provided zero-copy buffers)
Partial
Partial sandbox: allowed specific network domains or directories
Trusted
Trusted: full host access (requires explicit user Guardian approval to install)
Trait Implementations§
Source§impl Clone for SandboxLevel
impl Clone for SandboxLevel
Source§impl Debug for SandboxLevel
impl Debug for SandboxLevel
Source§impl<'de> Deserialize<'de> for SandboxLevel
impl<'de> Deserialize<'de> for SandboxLevel
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
Source§impl PartialEq for SandboxLevel
impl PartialEq for SandboxLevel
Source§impl Serialize for SandboxLevel
impl Serialize for SandboxLevel
impl StructuralPartialEq for SandboxLevel
Auto Trait Implementations§
impl Freeze for SandboxLevel
impl RefUnwindSafe for SandboxLevel
impl Send for SandboxLevel
impl Sync for SandboxLevel
impl Unpin for SandboxLevel
impl UnsafeUnpin for SandboxLevel
impl UnwindSafe for SandboxLevel
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more