pub enum Backend {
Host {
heel: HeelBinary,
},
Container {
runtime: ContainerShellRuntime,
launch: ContainerLaunch,
},
Ssh {
server: SshServer,
heel: Option<String>,
launch: RemoteLaunch,
},
}Expand description
Where a sandbox’s processes run.
The embedder supplies what each backend runs: the verified heel binary on
the host, the launch of the programs prepared in the container, the
server’s heel and launch. A host sandbox spawns programs and needs no
shell; the shell a Shell runs scripts under is given to
Shell::builder_on_host.
Variants§
Host
This machine, under heel’s sandbox.
Fields
§
heel: HeelBinaryThe verified heel binary the sandbox runs under.
Container
A running container, whose own limits are the boundary.
Fields
§
runtime: ContainerShellRuntimeThe container: its exec, its id, the workspace mount that maps host
paths into it and the HostRoute that says
where the host is reachable from inside.
§
launch: ContainerLaunchThe programs prepared inside the container.
Ssh
A remote machine over SSH.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Backend
impl !UnwindSafe for Backend
impl Forget for Backend
impl Freeze for Backend
impl Move for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
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
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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