pub enum SandboxRunOptions {
RunInHypervisor,
RunInProcess(bool),
}
Expand description
Re-export for SandboxRunOptions
type
Configuration options for setting up a new UninitializedSandbox
and
subsequent initialized sandboxes, including MultiUseSandbox
.
A SandboxRunOptions
instance must be created with either in-process
or in-hypervisor execution mode, and then can optionally be augmented
with run-from-guest-binary mode if created with in-hypervisor mode.
Variants§
RunInHypervisor
Run directly in a platform-appropriate hypervisor
RunInProcess(bool)
Run in-process, without a hypervisor, optionally using the
Windows LoadLibrary API to load the binary if the bool
field is
set to true
. This should only be used for testing and debugging
as it does not offer any security guarantees.
Trait Implementations§
Source§impl Clone for SandboxRunOptions
impl Clone for SandboxRunOptions
Source§fn clone(&self) -> SandboxRunOptions
fn clone(&self) -> SandboxRunOptions
Returns a copy 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 SandboxRunOptions
impl Debug for SandboxRunOptions
Source§impl Default for SandboxRunOptions
impl Default for SandboxRunOptions
Source§fn default() -> SandboxRunOptions
fn default() -> SandboxRunOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for SandboxRunOptions
impl PartialEq for SandboxRunOptions
impl Eq for SandboxRunOptions
impl StructuralPartialEq for SandboxRunOptions
Auto Trait Implementations§
impl Freeze for SandboxRunOptions
impl RefUnwindSafe for SandboxRunOptions
impl Send for SandboxRunOptions
impl Sync for SandboxRunOptions
impl Unpin for SandboxRunOptions
impl UnwindSafe for SandboxRunOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.